Commit 089496635a612c9ca3e68413451495023c794992

Authored by fengwotao
1 parent e6060933

feat(packages/external): 修复SvgBorder组件打包时报ts类型表达式过于复杂问题

... ... @@ -16,7 +16,7 @@
16 16 <script lang="ts" setup>
17 17 import { useDesign } from '@/hooks/external/useDesign';
18 18 import { IconBorderEnum, IconDynamicEffectEnum , IconBorderStyleEnum} from '@/packages/components/external/types';
19   -import { computed, CSSProperties } from 'vue';
  19 +import { computed, CSSProperties, PropType } from 'vue';
20 20 import { IconOptions } from './config';
21 21
22 22 const props = defineProps({
... ... @@ -54,7 +54,7 @@ const getDynamicEffectCls = computed(() => {
54 54 return dynamicEffect?.reduce((prev, next) => {
55 55 const { attr, value } = animation[next]
56 56 if (prev[attr]) {
57   - prev[attr] = prev[attr] + value as any
  57 + prev[attr as unknown as 'animation'] = prev[attr] + value
58 58 }
59 59
60 60 return { ...prev, [attr]: value }
... ...