From 5a813f3b28f3cbf1db3a3657ccf83267c6e0d315 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 24 十月 2024 11:22:02 +0800 Subject: [PATCH] 工艺路线相关优化 --- src/components/Description/src/Description.vue | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/Description/src/Description.vue b/src/components/Description/src/Description.vue index d24b381..a4823b4 100644 --- a/src/components/Description/src/Description.vue +++ b/src/components/Description/src/Description.vue @@ -1,30 +1,30 @@ <script lang="tsx"> - import type { DescriptionProps, DescInstance, DescItem } from './typing'; - import type { DescriptionsProps } from 'ant-design-vue/es/descriptions/index'; - import type { CollapseContainerOptions } from '/@/components/Container/index'; + import type { CollapseContainerOptions } from '@/components/Container'; + import { CollapseContainer } from '@/components/Container'; + import { useDesign } from '@/hooks/web/useDesign'; + import { getSlot } from '@/utils/helper/tsxHelper'; + import { isFunction } from '@/utils/is'; + import { useAttrs } from '@vben/hooks'; + import { Descriptions } from 'ant-design-vue'; + import type { DescriptionsProps } from 'ant-design-vue/es/descriptions'; + import { get } from 'lodash-es'; import { + computed, + defineComponent, + ref, + toRefs, + unref, type CSSProperties, type PropType, - defineComponent, - computed, - ref, - unref, - toRefs, } from 'vue'; - import { get } from 'lodash-es'; - import { Descriptions } from 'ant-design-vue'; - import { CollapseContainer } from '/@/components/Container/index'; - import { useDesign } from '/@/hooks/web/useDesign'; - import { isFunction } from '/@/utils/is'; - import { getSlot } from '/@/utils/helper/tsxHelper'; - import { useAttrs } from '@vben/hooks'; + import type { DescInstance, DescItem, DescriptionProps } from './typing'; const props = { useCollapse: { type: Boolean, default: true }, title: { type: String, default: '' }, size: { type: String, - validator: (v) => ['small', 'default', 'middle', undefined].includes(v), + validator: (v: string) => ['small', 'default', 'middle', undefined].includes(v), default: 'small', }, bordered: { type: Boolean, default: true }, @@ -175,7 +175,7 @@ const { title } = unref(getMergeProps); return ( - <CollapseContainer title={title} canExpan={canExpand} helpMessage={helpMessage}> + <CollapseContainer title={title} canExpand={canExpand} helpMessage={helpMessage}> {{ default: () => content, action: () => getSlot(slots, 'action'), -- Gitblit v1.9.3