Skip to content

Commit 08b3690

Browse files
committed
feat: enhance decimal input with placeholder, fullWidth, and prefix/suffix support
1 parent f01c9a9 commit 08b3690

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

adminforth/spa/src/components/ColumnValueInput.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@
9696
inputmode="decimal"
9797
class="w-40"
9898
:modelValue="cleanDecimalValue(value)"
99+
placeholder="0.0"
100+
:fullWidth="true"
101+
:prefix="column.inputPrefix"
102+
:suffix="column.inputSuffix"
99103
@update:modelValue="(val: string) => $emit('update:modelValue', val.replace(',', '.').replace(/[^\d.]/g, ''))"
100104
@blur="$emit('update:modelValue', cleanDecimalValue(value))"
101105
/>

0 commit comments

Comments
 (0)