Skip to content

Commit

Permalink
fix: add more state props (#433)
Browse files Browse the repository at this point in the history
Co-authored-by: 期贤 <qixian.cs@antgroup.com>
  • Loading branch information
chenshuai2144 and chenshuai2144 authored Jan 19, 2022
1 parent 00583dc commit 2488422
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ export interface MenuProps
subMenuItemProps: any,
stateProps: {
selected: boolean;
open: boolean;
active: boolean;
disabled: boolean;
},
) => React.ReactElement;
}
Expand Down
3 changes: 3 additions & 0 deletions src/SubMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ const InternalSubMenu = (props: SubMenuProps) => {
if (_internalRenderSubMenuItem) {
listNode = _internalRenderSubMenuItem(listNode, props, {
selected: childrenSelected,
active: mergedActive,
open,
disabled: mergedDisabled,
});
}

Expand Down

0 comments on commit 2488422

Please sign in to comment.