|
66 | 66 | step="1" |
67 | 67 | class="w-40" |
68 | 68 | placeholder="0" |
| 69 | + :fullWidth="true" |
69 | 70 | :min="![undefined, null].includes(column.minValue) ? column.minValue : ''" |
70 | 71 | :max="![undefined, null].includes(column.maxValue) ? column.maxValue : ''" |
71 | 72 | :prefix="column.inputPrefix" |
|
90 | 91 | step="0.1" |
91 | 92 | class="w-40" |
92 | 93 | placeholder="0.0" |
| 94 | + :fullWidth="true" |
93 | 95 | :min="![undefined, null].includes(column.minValue) ? column.minValue : ''" |
94 | 96 | :max="![undefined, null].includes(column.maxValue) ? column.maxValue : ''" |
95 | 97 | :prefix="column.inputPrefix" |
|
104 | 106 | class="bg-lightInputBackground border border-lightInputBorder text-lightInputText placeholder-lightInputPlaceholderText text-sm rounded-lg block w-full p-2.5 dark:bg-darkInputBackground dark:border-darkInputBorder dark:placeholder-darkInputPlaceholderText dark:text-darkInputText dark:border-darkInputBorder focus:ring-lightInputFocusRing focus:border-lightInputFocusBorder dark:focus:ring-darkInputFocusRing dark:focus:border-darkInputFocusBorder" |
105 | 107 | :placeholder="$t('Text')" |
106 | 108 | :value="value" |
107 | | - @input="$emit('update:modelValue', $event.target.value)" |
| 109 | + @input="$emit('update:modelValue', ($event.target as HTMLInputElement).value)" |
108 | 110 | :readonly="(column.editReadonly && source === 'edit') || readonly" |
109 | 111 | /> |
110 | 112 | <textarea |
|
113 | 115 | class="bg-lightInputBackground border border-lightInputBorder text-lightInputText placeholder-lightInputPlaceholderText text-sm rounded-lg block w-full p-2.5 dark:bg-darkInputBackground dark:border-darkInputBorder dark:placeholder-darkInputPlaceholderText dark:text-darkInputText dark:border-darkInputBorder focus:ring-lightInputFocusRing focus:border-lightInputFocusBorder dark:focus:ring-darkInputFocusRing dark:focus:border-darkInputFocusBorder" |
114 | 116 | :placeholder="$t('Text')" |
115 | 117 | :value="value" |
116 | | - @input="$emit('update:modelValue', $event.target.value)" |
| 118 | + @input="$emit('update:modelValue', ($event.target as HTMLInputElement).value)" |
117 | 119 | /> |
118 | 120 | <Input |
119 | 121 | v-else |
120 | 122 | ref="input" |
121 | 123 | :type="!column.masked || unmasked[column.name] ? 'text' : 'password'" |
122 | 124 | class="w-full" |
| 125 | + :fullWidth="true" |
123 | 126 | :placeholder="$t('Text')" |
124 | 127 | :prefix="column.inputPrefix" |
125 | 128 | :suffix="column.inputSuffix" |
|
190 | 193 | const onSearchInput = inject('onSearchInput', {} as any); |
191 | 194 | const loadMoreOptions = inject('loadMoreOptions', (() => {}) as any); |
192 | 195 |
|
193 | | - const input = ref(null); |
| 196 | +const input = ref<HTMLInputElement | null>(null); |
194 | 197 |
|
195 | 198 | const getBooleanOptions = (column: any) => { |
196 | 199 | const options: Array<{ label: string; value: boolean | null }> = [ |
|
0 commit comments