Commit 83d9df9d4856b07f428e3e414f626c15dba449e3

Authored by ww
1 parent 6d1b6623

fix(Icon): 修复icon颜色无法变更

@@ -3,8 +3,6 @@ import { computed, PropType } from 'vue' @@ -3,8 +3,6 @@ import { computed, PropType } from 'vue'
3 import { CreateComponentType } from '@/packages/index.d' 3 import { CreateComponentType } from '@/packages/index.d'
4 import { option } from './config' 4 import { option } from './config'
5 import SvgBorder from './SvgBorder.vue'; 5 import SvgBorder from './SvgBorder.vue';
6 -import { NIcon } from 'naive-ui';  
7 -import { GameController } from '@vicons/ionicons5'  
8 import SvgIcon from '@/components/external/Icon/src/SvgIcon.vue'; 6 import SvgIcon from '@/components/external/Icon/src/SvgIcon.vue';
9 7
10 const props = defineProps({ 8 const props = defineProps({
@@ -19,10 +17,12 @@ const size = computed(() => { @@ -19,10 +17,12 @@ const size = computed(() => {
19 return Math.min(w, h) / 2 17 return Math.min(w, h) / 2
20 }) 18 })
21 19
  20 +
22 </script> 21 </script>
23 22
24 <template> 23 <template>
25 <SvgBorder :option="chartConfig.option"> 24 <SvgBorder :option="chartConfig.option">
26 - <SvgIcon :style="{ color: option.iconColor }" :size="size" :name="chartConfig.option.icon!" prefix="iconfont" /> 25 + <SvgIcon :style="{ color: chartConfig.option.iconColor }" :size="size" :name="chartConfig.option.icon!"
  26 + prefix="iconfont" />
27 </SvgBorder> 27 </SvgBorder>
28 </template> 28 </template>