|
|
@@ -38,7 +38,6 @@ const TabsLayout: React.FC = () => { |
|
|
|
].filter(o => o !== null) as MenuItemType[], |
|
|
|
[tabs] |
|
|
|
); |
|
|
|
|
|
|
|
const menuClick = useCallback(({ key, domEvent }: any, tab: KeepAliveTab) => { |
|
|
|
domEvent.stopPropagation(); |
|
|
|
|
|
|
@@ -55,7 +54,7 @@ const TabsLayout: React.FC = () => { |
|
|
|
return ( |
|
|
|
<Dropdown |
|
|
|
menu={{ items: menuItems, onClick: (e) => menuClick(e, tab) }} |
|
|
|
trigger={['contextMenu']} |
|
|
|
trigger={['hover']} |
|
|
|
> |
|
|
|
<div style={{ margin: '-12px 0', padding: '12px 0' }}> |
|
|
|
{getIcon(tab.icon)} |
|
|
|