mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
code refactor
This commit is contained in:
@@ -129,6 +129,7 @@ const props = defineProps<{
|
||||
items: unknown[];
|
||||
noItemText?: string;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:modelValue', value: unknown): void;
|
||||
}>();
|
||||
|
||||
@@ -52,6 +52,7 @@ const props = defineProps<{
|
||||
items: unknown[];
|
||||
show: boolean;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:modelValue', value: unknown): void;
|
||||
(e: 'update:show', value: boolean): void;
|
||||
|
||||
@@ -92,6 +92,7 @@ const props = defineProps<{
|
||||
allowAddNewTag?: boolean;
|
||||
show: boolean;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:modelValue', value: string[]): void;
|
||||
(e: 'update:show', value: boolean): void;
|
||||
|
||||
@@ -102,6 +102,7 @@ const props = defineProps<{
|
||||
items: unknown[];
|
||||
show: boolean;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:modelValue', value: unknown): void;
|
||||
(e: 'update:show', value: boolean): void;
|
||||
|
||||
@@ -88,15 +88,15 @@ const props = defineProps<{
|
||||
show: boolean;
|
||||
}>();
|
||||
|
||||
const { tt, getCurrentLanguageTag, getAllLanguageOptions, getAllTransactionDefaultCategories, getLanguageInfo } = useI18n();
|
||||
|
||||
const transactionCategoriesStore = useTransactionCategoriesStore();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:show', value: boolean): void;
|
||||
(e: 'category:saved', event: { message: string }): void;
|
||||
}>();
|
||||
|
||||
const { tt, getCurrentLanguageTag, getAllLanguageOptions, getAllTransactionDefaultCategories, getLanguageInfo } = useI18n();
|
||||
|
||||
const transactionCategoriesStore = useTransactionCategoriesStore();
|
||||
|
||||
const snackbar = useTemplateRef<SnackBarType>('snackbar');
|
||||
|
||||
const currentLocale = ref<string>(getCurrentLanguageTag());
|
||||
|
||||
@@ -54,6 +54,7 @@ const props = defineProps<{
|
||||
isDarkMode?: boolean;
|
||||
enableClickItem?: boolean;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'click', event: MonthlyIncomeAndExpenseCardClickEvent): void;
|
||||
}>();
|
||||
|
||||
Reference in New Issue
Block a user