From 0523f0838246041bfc09130e21369bd777f63682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=87=95=E5=8D=9A=E6=96=87?= <349952469@qq.com> Date: Thu, 16 Jun 2022 11:07:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(svg-icon):=20=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=9C=A8Dropdown=E7=BB=84=E4=BB=B6=E4=B8=8Bh?= =?UTF-8?q?over=E7=8A=B6=E6=80=81=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/custom/SvgIcon.vue | 2 +- src/utils/common/icon.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/custom/SvgIcon.vue b/src/components/custom/SvgIcon.vue index d3dc9fd8..0546aedc 100644 --- a/src/components/custom/SvgIcon.vue +++ b/src/components/custom/SvgIcon.vue @@ -1,5 +1,5 @@ diff --git a/src/utils/common/icon.ts b/src/utils/common/icon.ts index db225dda..689d7748 100644 --- a/src/utils/common/icon.ts +++ b/src/utils/common/icon.ts @@ -35,5 +35,5 @@ export function customIconRender(icon: string, color?: string, size?: number) { style.size = `${size}px`; } - return () => h(SvgIcon, { icon, style }); + return () => h(NIcon, null, { default: () => h(SvgIcon, { icon, style }) }); }