support modifying amount and description when importing transactions

This commit is contained in:
MaysWind
2025-10-09 22:34:58 +08:00
parent 5692bec216
commit 73f8446d07
2 changed files with 43 additions and 6 deletions
+4 -2
View File
@@ -1,7 +1,8 @@
<template>
<v-text-field type="text" class="text-field-with-colored-label" :class="extraClass"
:color="color" :base-color="color"
:density="density" :readonly="!!readonly" :disabled="!!disabled"
:density="density" :variant="variant"
:readonly="!!readonly" :disabled="!!disabled"
:label="label" :placeholder="placeholder"
:persistent-placeholder="!!persistentPlaceholder"
:rules="enableRules ? rules : []" v-model="currentValue" v-if="!hide && !formulaMode"
@@ -80,7 +81,7 @@ import { DEFAULT_DECIMAL_NUMBER_COUNT } from '@/consts/numeral.ts';
import { TRANSACTION_MIN_AMOUNT, TRANSACTION_MAX_AMOUNT } from '@/consts/transaction.ts';
import { isNumber, replaceAll } from '@/lib/common.ts';
import { evaluateExpressionToAmount } from '@/lib/evaluator.ts';
import type { ComponentDensity } from '@/lib/ui/desktop.ts';
import type { ComponentDensity, InputVariant } from '@/lib/ui/desktop.ts';
import logger from '@/lib/logger.ts';
import {
@@ -95,6 +96,7 @@ interface DesktopAmountInputProps extends CommonNumberInputProps {
class?: string;
color?: string;
density?: ComponentDensity;
variant?: InputVariant;
currency: string;
showCurrency?: boolean;
persistentPlaceholder?: boolean;