Skip to content

Commit

Permalink
fix(build): ts error for menu and tree-select
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Jun 20, 2024
1 parent a5723b5 commit a5a4e14
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/design/src/menu/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from 'antd/es/menu/hooks/useItems';
export * from 'antd/es/menu';
2 changes: 1 addition & 1 deletion packages/design/src/tree-select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const InternalTreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>(
);

const TreeSelect = InternalTreeSelect as CompoundedComponent;
const TreeNode = AntTreeSelect.TreeNode;
const TreeNode = AntTreeSelect.TreeNode as typeof AntTreeNode;

TreeSelect.TreeNode = TreeNode;
TreeSelect.SHOW_ALL = AntTreeSelect.SHOW_ALL;
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/Action/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export default ({
? action.props.disabled
: getDefaultDisabled(action.key as string));
return (
// @ts-ignore
<Menu.Item
key={(actionKey as string) ?? index.toString()}
onClick={action.props.onClick}
Expand Down

0 comments on commit a5a4e14

Please sign in to comment.