mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-24 04:16:38 +08:00
fix(svg-icon): 自定义图标在Dropdown组件下hover状态无法显示图标
This commit is contained in:
parent
8237adb9c0
commit
0523f08382
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<svg aria-hidden="true" width="1em" height="1em" class="inline-block">
|
||||
<svg aria-hidden="true" width="1em" height="1em">
|
||||
<use :xlink:href="symbolId" fill="currentColor" />
|
||||
</svg>
|
||||
</template>
|
||||
|
@ -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 }) });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user