From c5d0eca6a1eee9d5ec58127abebf91d3773919fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=89=B3?= Date: Mon, 16 Dec 2024 19:59:49 +0800 Subject: [PATCH 1/2] fix: The display of disabled subNavItem in vertical Navigation is not as expected when it is collapsed --- packages/semi-ui/navigation/Item.tsx | 2 +- .../navigation/_story/navigation.stories.jsx | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/packages/semi-ui/navigation/Item.tsx b/packages/semi-ui/navigation/Item.tsx index db737b5f6a..7c06f8f401 100644 --- a/packages/semi-ui/navigation/Item.tsx +++ b/packages/semi-ui/navigation/Item.tsx @@ -168,7 +168,7 @@ export default class NavItem extends BaseComponent { mouseEnterDelay={showDelay} mouseLeaveDelay={hideDelay} > - {node} + {node} ); }; diff --git a/packages/semi-ui/navigation/_story/navigation.stories.jsx b/packages/semi-ui/navigation/_story/navigation.stories.jsx index a5b94e8d8e..2aa670a50c 100644 --- a/packages/semi-ui/navigation/_story/navigation.stories.jsx +++ b/packages/semi-ui/navigation/_story/navigation.stories.jsx @@ -352,4 +352,43 @@ PopupDemo.story = { export const CustomArrowIconDemo = () => CustomArrowIconDemo.story = { name: 'CustomArrowIcon' +} + + +class DisabledSub extends React.Component { + render() { + return ( +