diff --git a/packages/layout/src/components/SiderMenu/BaseMenu.tsx b/packages/layout/src/components/SiderMenu/BaseMenu.tsx index bbf44302f561..639c93653933 100644 --- a/packages/layout/src/components/SiderMenu/BaseMenu.tsx +++ b/packages/layout/src/components/SiderMenu/BaseMenu.tsx @@ -31,6 +31,7 @@ const MenuItemTooltip = (props: { collapsed?: boolean; children: React.ReactNode; title?: React.ReactNode; + disable?: boolean; }) => { const [collapsed, setCollapsed] = useState(props.collapsed); const [open, setOpen] = useState(false); @@ -41,6 +42,10 @@ const MenuItemTooltip = (props: { }, 400); }, [props.collapsed]); + if (props.disable) { + return props.children as JSX.Element; + } + return ( +