mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
code refactor
This commit is contained in:
@@ -39,15 +39,6 @@ import { TRANSACTION_MIN_AMOUNT, TRANSACTION_MAX_AMOUNT } from '@/consts/transac
|
||||
import { removeAll } from '@/lib/common.ts';
|
||||
import logger from '@/lib/logger.ts';
|
||||
|
||||
const {
|
||||
tt,
|
||||
getCurrentDecimalSeparator,
|
||||
getCurrentDigitGroupingSymbol,
|
||||
parseAmount,
|
||||
formatAmount,
|
||||
getAmountPrependAndAppendText
|
||||
} = useI18n();
|
||||
|
||||
const props = defineProps<{
|
||||
class?: string;
|
||||
color?: string;
|
||||
@@ -68,6 +59,15 @@ const emit = defineEmits<{
|
||||
(e: 'update:modelValue', value: number): void;
|
||||
}>();
|
||||
|
||||
const {
|
||||
tt,
|
||||
getCurrentDecimalSeparator,
|
||||
getCurrentDigitGroupingSymbol,
|
||||
parseAmount,
|
||||
formatAmount,
|
||||
getAmountPrependAndAppendText
|
||||
} = useI18n();
|
||||
|
||||
const rules = [
|
||||
(v: string) => {
|
||||
if (v === '') {
|
||||
|
||||
Reference in New Issue
Block a user