Browse Source

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

pull/5407/head
tangjinzhou 3 years ago
parent
commit
e146b4847d
  1. 10
      components/menu/src/MenuItem.tsx

10
components/menu/src/MenuItem.tsx

@ -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