From 14093bec071d7495db6a73cc989ea9b4e89b243b Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Tue, 21 Oct 2025 13:42:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=20desc=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E6=98=BE=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/description/description.vue | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/web-antd/src/components/description/description.vue b/apps/web-antd/src/components/description/description.vue index 897ba4412..0953d53ee 100644 --- a/apps/web-antd/src/components/description/description.vue +++ b/apps/web-antd/src/components/description/description.vue @@ -7,10 +7,9 @@ import type { DescriptionItemSchema, DescriptionProps } from './typing'; import { computed, defineComponent, ref, toRefs, unref, useAttrs } from 'vue'; -import { ContentWrap } from '@vben/common-ui'; import { get, isFunction } from '@vben/utils'; -import { Descriptions } from 'ant-design-vue'; +import { Card, Descriptions } from 'ant-design-vue'; const props = { bordered: { default: true, type: Boolean }, @@ -171,20 +170,21 @@ export default defineComponent({ const extraSlot = getSlot(slots, 'extra'); return ( - {{ default: () => content, - title: () => ( -
-
{title}
- {extraSlot &&
{extraSlot}
} -
- ), + extra: () => extraSlot &&
{extraSlot}
, }} -
+ ); }