Browse Source

Merge pull request #7978 from nocodb/nc-fix/prefix-form

Nc fix(nc-gui): prefill currency readonly field ui alignment issue
pull/7969/head
Ramesh Mane 6 months ago committed by GitHub
parent
commit
ee363f897f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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