We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21649e0 commit f2d56f9Copy full SHA for f2d56f9
1 file changed
adminforth/spa/src/components/ColumnValueInput.vue
@@ -99,8 +99,9 @@
99
:fullWidth="true"
100
:prefix="column.inputPrefix"
101
:suffix="column.inputSuffix"
102
+ :readonly="(column.editReadonly && source === 'edit') || readonly"
103
:modelValue="value?.toString().replace(/(\.[0-9]*[1-9])0+$|\.0+$/, '$1')"
- @update:modelValue="$emit('update:modelValue', $event)"
104
+ @update:modelValue="(val: string | number) => $emit('update:modelValue', val !== null ? String(val) : '')"
105
/>
106
<Input
107
v-else-if="(type || column.type) === 'float'"
0 commit comments