|
100 | 100 | @update:modelValue="$emit('update:modelValue', $event)"
|
101 | 101 | :readonly="(column.editReadonly && source === 'edit') || readonly"
|
102 | 102 | />
|
103 |
| - <textarea |
| 103 | + <Textarea |
104 | 104 | v-else-if="['text', 'richtext'].includes(type || column.type)"
|
105 |
| - ref="input" |
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" |
107 | 105 | :placeholder="$t('Text')"
|
108 |
| - :value="value" |
109 |
| - @input="$emit('update:modelValue', ($event.target as HTMLInputElement).value)" |
| 106 | + :modelValue="value" |
| 107 | + @update:modelValue="$emit('update:modelValue', $event)" |
110 | 108 | :readonly="(column.editReadonly && source === 'edit') || readonly"
|
111 | 109 | />
|
112 |
| - <textarea |
| 110 | + <Textarea |
113 | 111 | v-else-if="['json'].includes(type || column.type)"
|
114 |
| - ref="input" |
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" |
116 | 112 | :placeholder="$t('Text')"
|
117 |
| - :value="value" |
118 |
| - @input="$emit('update:modelValue', ($event.target as HTMLInputElement).value)" |
| 113 | + :modelValue="value" |
| 114 | + @update:modelValue="$emit('update:modelValue', $event)" |
119 | 115 | />
|
120 | 116 | <Input
|
121 | 117 | v-else
|
|
160 | 156 | import Select from '@/afcl/Select.vue';
|
161 | 157 | import Input from '@/afcl/Input.vue';
|
162 | 158 | import Spinner from '@/afcl/Spinner.vue';
|
| 159 | + import Textarea from '@/afcl/Textarea.vue'; |
163 | 160 | import { ref, inject } from 'vue';
|
164 | 161 | import { getCustomComponent } from '@/utils';
|
165 | 162 | import { useI18n } from 'vue-i18n';
|
|
0 commit comments