fix: menuItem custom icon lose custom class, close #5390
parent
e9ba9fe110
commit
e146b4847d
|
@ -233,9 +233,13 @@ export default defineComponent({
|
||||||
onFocus={onInternalFocus}
|
onFocus={onInternalFocus}
|
||||||
title={typeof title === 'string' ? title : undefined}
|
title={typeof title === 'string' ? title : undefined}
|
||||||
>
|
>
|
||||||
{cloneElement(icon, {
|
{cloneElement(
|
||||||
class: `${prefixCls.value}-item-icon`,
|
icon,
|
||||||
})}
|
{
|
||||||
|
class: `${prefixCls.value}-item-icon`,
|
||||||
|
},
|
||||||
|
false,
|
||||||
|
)}
|
||||||
{renderItemChildren(icon, children)}
|
{renderItemChildren(icon, children)}
|
||||||
</Overflow.Item>
|
</Overflow.Item>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
Loading…
Reference in New Issue