|
|
@ -112,13 +112,14 @@ onMounted(() => { |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<input |
|
|
|
<input |
|
|
|
v-if="!readOnly && editEnabled" |
|
|
|
v-if="(!readOnly && editEnabled) || (isForm && !isEditColumn)" |
|
|
|
:ref="focus" |
|
|
|
:ref="focus" |
|
|
|
v-model="vModel" |
|
|
|
v-model="vModel" |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
|
class="nc-cell-field h-full text-sm border-none rounded-md py-1 outline-none focus:outline-none focus:ring-0" |
|
|
|
class="nc-cell-field h-full text-sm border-none rounded-md py-1 outline-none focus:outline-none focus:ring-0" |
|
|
|
:class="isForm && !isEditColumn ? 'flex flex-1' : 'w-full'" |
|
|
|
:class="isForm && !isEditColumn ? 'flex flex-1' : 'w-full'" |
|
|
|
:placeholder="isEditColumn ? $t('labels.optional') : ''" |
|
|
|
:placeholder="isEditColumn ? $t('labels.optional') : ''" |
|
|
|
|
|
|
|
:disabled="readOnly" |
|
|
|
@blur="onBlur" |
|
|
|
@blur="onBlur" |
|
|
|
@keydown.enter="onKeydownEnter" |
|
|
|
@keydown.enter="onKeydownEnter" |
|
|
|
@keydown.down.stop |
|
|
|
@keydown.down.stop |
|
|
|