Commit 4393fa6fab17db01589dc48f57fbeda2e3c74d27

Authored by xp.Huang
2 parents e6060933 08949663

Merge branch 'ft' into 'main_dev'

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

See merge request yunteng/thingskit-view!72
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 <script lang="ts" setup> 16 <script lang="ts" setup>
17 import { useDesign } from '@/hooks/external/useDesign'; 17 import { useDesign } from '@/hooks/external/useDesign';
18 import { IconBorderEnum, IconDynamicEffectEnum , IconBorderStyleEnum} from '@/packages/components/external/types'; 18 import { IconBorderEnum, IconDynamicEffectEnum , IconBorderStyleEnum} from '@/packages/components/external/types';
19 -import { computed, CSSProperties } from 'vue'; 19 +import { computed, CSSProperties, PropType } from 'vue';
20 import { IconOptions } from './config'; 20 import { IconOptions } from './config';
21 21
22 const props = defineProps({ 22 const props = defineProps({
@@ -54,7 +54,7 @@ const getDynamicEffectCls = computed(() => { @@ -54,7 +54,7 @@ const getDynamicEffectCls = computed(() => {
54 return dynamicEffect?.reduce((prev, next) => { 54 return dynamicEffect?.reduce((prev, next) => {
55 const { attr, value } = animation[next] 55 const { attr, value } = animation[next]
56 if (prev[attr]) { 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 return { ...prev, [attr]: value } 60 return { ...prev, [attr]: value }