fix: menuItem custom icon lose custom class, close #5390

pull/5407/head
tangjinzhou 3 years ago
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…
Cancel
Save