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