Skip to content

Commit 36cf8c0

Browse files
committed
fix: streamline model value handling in ColumnValueInput component
1 parent 8a5f2e9 commit 36cf8c0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

adminforth/spa/src/components/ColumnValueInput.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,8 @@
101101
:prefix="column.inputPrefix"
102102
:suffix="column.inputSuffix"
103103
:readonly="(column.editReadonly && source === 'edit') || readonly"
104-
105104
:modelValue="value !== null && value !== undefined ? parseFloat(value) : ''"
106-
107105
@update:modelValue="$emit('update:modelValue', $event)"
108-
109106
@blur="$emit('update:modelValue', value ? parseFloat(value).toString() : '')"
110107
/>
111108
<Input
@@ -212,6 +209,7 @@
212209
213210
const columnLoadingState = inject('columnLoadingState', {} as any);
214211
const onSearchInput = inject('onSearchInput', {} as any);
212+
215213
const loadMoreOptions = inject('loadMoreOptions', (() => {}) as any);
216214
217215
const input = ref<HTMLInputElement | null>(null);

0 commit comments

Comments
 (0)