|
|
|
@ -160,7 +160,8 @@ function onKeyDown(evt: KeyboardEvent) {
|
|
|
|
|
v-if="!readOnly && editEnabled && (isExpandedFormOpen ? expandedEditEnabled : true)" |
|
|
|
|
:ref="focus" |
|
|
|
|
v-model="vModel" |
|
|
|
|
class="nc-cell-field w-full !text-sm !border-none !outline-none focus:ring-0 text-base py-1" |
|
|
|
|
class="nc-cell-field w-full !text-sm !border-none !outline-none focus:ring-0 py-1" |
|
|
|
|
style="letter-spacing: 0.06rem" |
|
|
|
|
type="number" |
|
|
|
|
:placeholder="isEditColumn ? $t('labels.optional') : ''" |
|
|
|
|
:step="percentStep" |
|
|
|
@ -188,7 +189,7 @@ function onKeyDown(evt: KeyboardEvent) {
|
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
<!-- nbsp to keep height even if vModel is zero length --> |
|
|
|
|
<span v-else class="nc-cell-field">{{ displayValue }} </span> |
|
|
|
|
<span v-else class="nc-cell-field text-sm">{{ displayValue }} </span> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|