|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<script lang="tsx"> |
|
|
|
|
import type { DescriptionsProps } from 'ant-design-vue/es/descriptions' |
|
|
|
|
import type { CSSProperties } from 'vue' |
|
|
|
|
import { computed, defineComponent, ref, toRefs, unref } from 'vue' |
|
|
|
|
import { computed, defineComponent, ref, unref } from 'vue' |
|
|
|
|
import { get } from 'lodash-es' |
|
|
|
|
import { Descriptions } from 'ant-design-vue' |
|
|
|
|
import type { DescInstance, DescItem, DescriptionProps } from './typing' |
|
|
|
@ -120,7 +120,7 @@ export default defineComponent({
|
|
|
|
|
|
|
|
|
|
const getField = get(_data, field) |
|
|
|
|
// eslint-disable-next-line no-prototype-builtins |
|
|
|
|
if (getField && !toRefs(_data).hasOwnProperty(field)) |
|
|
|
|
if (getField && !_data.hasOwnProperty(field)) |
|
|
|
|
return isFunction(render) ? render('', _data) : '' |
|
|
|
|
|
|
|
|
|
return isFunction(render) ? render(getField, _data) : getField ?? '' |
|
|
|
|