diff --git a/src/components/IconSelect/index.vue b/src/components/IconSelect/index.vue index 2c525040..8be55cc2 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;