perf: Form Table Search Descriptions 支持嵌套赋值

This commit is contained in:
kailong321200875
2023-08-05 10:38:49 +08:00
parent dfea91c7e1
commit 46ddf62d2d
20 changed files with 428 additions and 158 deletions

View File

@@ -6,6 +6,7 @@ import { ref, unref, PropType, computed, defineComponent } from 'vue'
import { useAppStore } from '@/store/modules/app'
import { DescriptionsSchema } from './types'
import { Icon } from '@/components/Icon'
import { get } from 'lodash-es'
const appStore = useAppStore()
@@ -114,7 +115,7 @@ export default defineComponent({
default: () =>
item.slots?.default
? item.slots?.default(props.data)
: props.data[item.field]
: get(props.data, item.field)
}}
</ElDescriptionsItem>
)