File tree Expand file tree Collapse file tree
adminforth/spa/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9999 :fullWidth =" true"
100100 :prefix =" column.inputPrefix"
101101 :suffix =" column.inputSuffix"
102- :modelValue =" String( value)"
103- @update:modelValue =" $emit('update:modelValue', String($event ))"
102+ :modelValue =" value == null ? null : value.toString().replace(/(\.[0-9]*[1-9])0+$|\.0+$/, '$1' )"
103+ @update:modelValue =" (val: string | number | null | undefined) => $emit('update:modelValue', val == null || (typeof val === 'number' && Number.isNaN(val)) ? '' : String(val ))"
104104 />
105105 <Input
106106 v-else-if =" (type || column.type) === 'float'"
206206
207207 const columnLoadingState = inject (' columnLoadingState' , {} as any );
208208 const onSearchInput = inject (' onSearchInput' , {} as any );
209+
209210 const loadMoreOptions = inject (' loadMoreOptions' , (() => {}) as any );
210211
211212const input = ref <HTMLInputElement | null >(null );
212-
213213 const getBooleanOptions = (column : any ) => {
214214 const options: Array <{ label: string ; value: boolean | null }> = [
215215 { label: t (' Yes' ), value: true },
You can’t perform that action at this time.
0 commit comments