diff --git a/src/components/Descriptions/src/Descriptions.vue b/src/components/Descriptions/src/Descriptions.vue index 40fdc250f..66dad8b24 100644 --- a/src/components/Descriptions/src/Descriptions.vue +++ b/src/components/Descriptions/src/Descriptions.vue @@ -16,6 +16,8 @@ const { getPrefixCls } = useDesign() const prefixCls = getPrefixCls('descriptions') +const defaultData = '-' + export default defineComponent({ name: 'Descriptions', props: { @@ -115,7 +117,7 @@ export default defineComponent({ default: () => item.slots?.default ? item.slots?.default(props.data) - : get(props.data, item.field) + : get(props.data, item.field) ?? defaultData }} )