Browse Source

fix(nc-gui): prefill currency readonly field ui alignment issue

pull/7978/head
Ramesh Mane 8 months ago
parent
commit
028c4e74d8
  1. 3
      packages/nc-gui/components/cell/Currency.vue

3
packages/nc-gui/components/cell/Currency.vue

@ -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

Loading…
Cancel
Save