Commit 83d9df9d4856b07f428e3e414f626c15dba449e3

Authored by ww
1 parent 6d1b6623

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

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