File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 206206 <div v-else-if =" typeof item.data?.[n] === 'string' || typeof item.data?.[n] === 'object'" >
207207 <textarea
208208 :value =" cardValueMode?.[String(item.id)] === 'old' ? (item.oldData?.[n] || item.oldData?.[n] === 0 ? item.oldData[n] : $t('no old value')) : item.data[n]"
209- @input =" (e) => { if (cardValueMode?.[String(item.id)] !== 'old') item.data[n] = e.target.value }"
209+ @input =" (e) => { if (cardValueMode?.[String(item.id)] !== 'old') item.data[n] = ( e.target as HTMLInputElement) .value }"
210210 :disabled =" cardValueMode?.[String(item.id)] === 'old'"
211211 class =" w-full text-sm p-2 border border-gray-200 dark:border-gray-600 rounded-default bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-400 disabled:bg-gray-50 dark:disabled:bg-gray-700 disabled:text-gray-400 dark:disabled:text-gray-500"
212212 :class =" props.meta.isAttachFiles ? 'min-h-[42px]' : 'min-h-[120px]'"
221221 <input
222222 :type =" cardValueMode?.[String(item.id)] === 'old' && !item.oldData?.[n] && item.oldData?.[n] !== 0 ? 'text' : 'number'"
223223 :value =" cardValueMode?.[String(item.id)] === 'old' ? (item.oldData?.[n] || item.oldData?.[n] === 0 ? item.oldData[n] : $t('no old value')) : item.data[n]"
224- @input =" (e) => { if (cardValueMode?.[String(item.id)] !== 'old') item.data[n] = Number(e.target.value) }"
224+ @input =" (e) => { if (cardValueMode?.[String(item.id)] !== 'old') item.data[n] = Number(( e.target as HTMLInputElement) .value) }"
225225 :disabled =" cardValueMode?.[String(item.id)] === 'old'"
226226 class =" w-full h-10 px-3 border border-gray-200 dark:border-gray-600 rounded-default bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-400 disabled:bg-gray-50 dark:disabled:bg-gray-700 disabled:text-gray-400 dark:disabled:text-gray-500 text-sm"
227227 />
You can’t perform that action at this time.
0 commit comments