mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 15:37:33 +08:00
add category edit ui
This commit is contained in:
+6
-4
@@ -1,5 +1,5 @@
|
||||
const defaultAccountColor = '000000';
|
||||
const allAccountColors = [
|
||||
const defaultColor = '000000';
|
||||
const allAvailableColors = [
|
||||
'000000', // black
|
||||
'8e8e93', // gray
|
||||
'ff3b30', // red
|
||||
@@ -17,6 +17,8 @@ const allAccountColors = [
|
||||
];
|
||||
|
||||
export default {
|
||||
allAccountColors: allAccountColors,
|
||||
defaultAccountColor: defaultAccountColor,
|
||||
allAccountColors: allAvailableColors,
|
||||
defaultAccountColor: defaultColor,
|
||||
allCategoryColors: allAvailableColors,
|
||||
defaultCategoryColor: defaultColor,
|
||||
};
|
||||
|
||||
@@ -157,6 +157,15 @@ const allAccountIcons = {
|
||||
icon: 'lab la-weixin'
|
||||
}
|
||||
};
|
||||
|
||||
const defaultCategoryIconId = '1';
|
||||
const allCategoryIcons = {
|
||||
// 1 - 99 : Expense - Food & Drink
|
||||
'1': {
|
||||
icon: 'las la-utensils'
|
||||
}
|
||||
};
|
||||
|
||||
const deviceIcons = {
|
||||
mobile: {
|
||||
f7Icon: 'device_phone_portrait'
|
||||
@@ -179,5 +188,8 @@ export default {
|
||||
allAccountIcons: allAccountIcons,
|
||||
defaultAccountIconId: defaultAccountIconId,
|
||||
defaultAccountIcon: allAccountIcons[defaultAccountIconId],
|
||||
allCategoryIcons: allCategoryIcons,
|
||||
defaultCategoryIconId: defaultCategoryIconId,
|
||||
defaultCategoryIcon: allCategoryIcons[defaultCategoryIconId],
|
||||
deviceIcons: deviceIcons,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user