|
|
@ -6,6 +6,7 @@ import { |
|
|
|
IsFormInj, |
|
|
|
IsFormInj, |
|
|
|
JsonExpandInj, |
|
|
|
JsonExpandInj, |
|
|
|
ReadonlyInj, |
|
|
|
ReadonlyInj, |
|
|
|
|
|
|
|
RowHeightInj, |
|
|
|
computed, |
|
|
|
computed, |
|
|
|
inject, |
|
|
|
inject, |
|
|
|
ref, |
|
|
|
ref, |
|
|
@ -46,6 +47,8 @@ const _isExpanded = inject(JsonExpandInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const isExpanded = ref(false) |
|
|
|
const isExpanded = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const rowHeight = inject(RowHeightInj, ref(undefined)) |
|
|
|
|
|
|
|
|
|
|
|
const localValue = computed<string | Record<string, any> | undefined>({ |
|
|
|
const localValue = computed<string | Record<string, any> | undefined>({ |
|
|
|
get: () => localValueState.value, |
|
|
|
get: () => localValueState.value, |
|
|
|
set: (val: undefined | string | Record<string, any>) => { |
|
|
|
set: (val: undefined | string | Record<string, any>) => { |
|
|
@ -182,7 +185,7 @@ watch(isExpanded, () => { |
|
|
|
|
|
|
|
|
|
|
|
<span v-else-if="vModel === null && showNull" class="nc-null uppercase">{{ $t('general.null') }}</span> |
|
|
|
<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> |
|
|
|
</component> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|