code refactor

This commit is contained in:
MaysWind
2025-01-18 22:45:16 +08:00
parent 20e95e35aa
commit c675057ab1
17 changed files with 58 additions and 68 deletions
+9 -9
View File
@@ -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 === '') {