From 6a542b61047ec3a26211751bf776314d244d87af Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Tue, 1 Nov 2022 09:46:13 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Descriptions/src/Descriptions.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yudao-ui-admin-vue3/src/components/Descriptions/src/Descriptions.vue b/yudao-ui-admin-vue3/src/components/Descriptions/src/Descriptions.vue index 946546680..7fa023afb 100644 --- a/yudao-ui-admin-vue3/src/components/Descriptions/src/Descriptions.vue +++ b/yudao-ui-admin-vue3/src/components/Descriptions/src/Descriptions.vue @@ -2,7 +2,7 @@ import { ElCollapseTransition, ElDescriptions, ElDescriptionsItem, ElTooltip } from 'element-plus' import { useDesign } from '@/hooks/web/useDesign' import { propTypes } from '@/utils/propTypes' -import { ref, unref, PropType, computed, useAttrs } from 'vue' +import { ref, unref, PropType, computed, useAttrs, useSlots } from 'vue' import { useAppStore } from '@/store/modules/app' import { DescriptionsSchema } from '@/types/descriptions' @@ -12,6 +12,8 @@ const mobile = computed(() => appStore.getMobile) const attrs = useAttrs() +const slots = useSlots() + const props = defineProps({ title: propTypes.string.def(''), message: propTypes.string.def(''), @@ -96,6 +98,9 @@ const toggleClick = () => { :direction="mobile ? 'vertical' : 'horizontal'" v-bind="getBindValue" > +