mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 17:54:30 +08:00
code refactor
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
>
|
>
|
||||||
<template #selection>
|
<template #selection>
|
||||||
<v-label>
|
<v-label>
|
||||||
<ItemIcon icon-type="category" :icon-id="icon" :color="color" />
|
<ItemIcon :icon-type="iconType" :icon-id="icon" :color="color" />
|
||||||
</v-label>
|
</v-label>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -48,6 +48,7 @@ export default {
|
|||||||
'modelValue',
|
'modelValue',
|
||||||
'disabled',
|
'disabled',
|
||||||
'label',
|
'label',
|
||||||
|
'iconType',
|
||||||
'color',
|
'color',
|
||||||
'columnCount',
|
'columnCount',
|
||||||
'allIconInfos'
|
'allIconInfos'
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="12" md="6">
|
<v-col cols="12" md="6">
|
||||||
<icon-select :all-icon-infos="allCategoryIcons"
|
<icon-select icon-type="category"
|
||||||
|
:all-icon-infos="allCategoryIcons"
|
||||||
:label="$t('Category Icon')"
|
:label="$t('Category Icon')"
|
||||||
:color="category.color"
|
:color="category.color"
|
||||||
:disabled="loading || submitting"
|
:disabled="loading || submitting"
|
||||||
@@ -263,7 +264,7 @@ export default {
|
|||||||
setCategory(category) {
|
setCategory(category) {
|
||||||
this.category.id = category.id;
|
this.category.id = category.id;
|
||||||
this.category.type = category.type;
|
this.category.type = category.type;
|
||||||
this.category.parentId = category.type.parentId;
|
this.category.parentId = category.parentId;
|
||||||
this.category.name = category.name;
|
this.category.name = category.name;
|
||||||
this.category.icon = category.icon;
|
this.category.icon = category.icon;
|
||||||
this.category.color = category.color;
|
this.category.color = category.color;
|
||||||
|
|||||||
Reference in New Issue
Block a user