|
|
@ -28,6 +28,8 @@ const isEditColumn = inject(EditColumnInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const rowHeight = inject(RowHeightInj, ref(1 as const)) |
|
|
|
const rowHeight = inject(RowHeightInj, ref(1 as const)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isForm = inject(IsFormInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const { showNull } = useGlobal() |
|
|
|
const { showNull } = useGlobal() |
|
|
|
|
|
|
|
|
|
|
|
const vModel = useVModel(props, 'modelValue', emits, { defaultValue: '' }) |
|
|
|
const vModel = useVModel(props, 'modelValue', emits, { defaultValue: '' }) |
|
|
@ -72,6 +74,7 @@ onClickOutside(inputWrapperRef, (e) => { |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
'min-h-10': rowHeight !== 1, |
|
|
|
'min-h-10': rowHeight !== 1, |
|
|
|
'min-h-6.5': rowHeight === 1, |
|
|
|
'min-h-6.5': rowHeight === 1, |
|
|
|
|
|
|
|
'h-full': isForm, |
|
|
|
}" |
|
|
|
}" |
|
|
|
> |
|
|
|
> |
|
|
|
<textarea |
|
|
|
<textarea |
|
|
@ -80,7 +83,10 @@ onClickOutside(inputWrapperRef, (e) => { |
|
|
|
v-model="vModel" |
|
|
|
v-model="vModel" |
|
|
|
rows="4" |
|
|
|
rows="4" |
|
|
|
class="h-full w-full outline-none border-none" |
|
|
|
class="h-full w-full outline-none border-none" |
|
|
|
:class="`${editEnabled ? 'p-2' : ''}`" |
|
|
|
:class="{ |
|
|
|
|
|
|
|
'p-2': editEnabled, |
|
|
|
|
|
|
|
'py-1 h-full': isForm, |
|
|
|
|
|
|
|
}" |
|
|
|
:style="{ |
|
|
|
:style="{ |
|
|
|
minHeight: `${height}px`, |
|
|
|
minHeight: `${height}px`, |
|
|
|
}" |
|
|
|
}" |
|
|
|