mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-10 18:53:44 +08:00
fix(svg-icon): 自定义图标在Dropdown组件下hover状态无法显示图标
This commit is contained in:
@@ -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 }) });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user