Browse Source

fix(nc-gui): json field doesn't respect row height

nc-fix/json-clamp
DarkPhoenix2704 1 year ago
parent
commit
1b5fcd154a
  1. 5
      packages/nc-gui/components/cell/Json.vue

5
packages/nc-gui/components/cell/Json.vue

@ -6,6 +6,7 @@ import {
IsFormInj,
JsonExpandInj,
ReadonlyInj,
RowHeightInj,
computed,
inject,
ref,
@ -36,6 +37,8 @@ const isForm = inject(IsFormInj, ref(false))
const readonly = inject(ReadonlyInj)
const rowHeight = inject(RowHeightInj, ref(undefined))
const vModel = useVModel(props, 'modelValue', emits)
const localValueState = ref<string | undefined>()
@ -182,7 +185,7 @@ watch(isExpanded, () => {
<span v-else-if="vModel === null && showNull" class="nc-null uppercase">{{ $t('general.null') }}</span>
<span v-else>{{ vModel }}</span>
<LazyCellClampedText v-else :value="vModel" :lines="rowHeight" />
</component>
</template>

Loading…
Cancel
Save