From 01bc58ba0dfb51de04c6103fa98766567de1e8dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E7=BB=A7?= Date: Fri, 8 Mar 2024 20:52:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(IconSelect):=20:bug:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=97=B6=E6=8F=90=E7=A4=BAiconComponent.name?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E4=B8=BAundefined=E7=9A=84=E6=8A=A5=E9=94=99?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/IconSelect/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/IconSelect/index.vue b/src/components/IconSelect/index.vue index 2c52504..8be55cc 100644 --- a/src/components/IconSelect/index.vue +++ b/src/components/IconSelect/index.vue @@ -169,7 +169,7 @@ function loadIcons() { type IconNames = keyof typeof ElementPlusIconsVue; const renderIcon = (iconName: string) => { const iconComponent = ElementPlusIconsVue[iconName as IconNames]; - if (iconComponent) { + if (iconComponent && iconComponent.name) { return h(resolveComponent(iconComponent.name)); } return null;