Skip to content

Commit

Permalink
Merge pull request #584 from oceanbase/dependabot/npm_and_yarn/featur…
Browse files Browse the repository at this point in the history
…e/rc-tree-select-5.20.0

[Feature Branch] Bump rc-tree-select from 5.19.0 to 5.20.0
  • Loading branch information
dengfuping authored May 7, 2024
2 parents c7e6ad7 + 51bdc5b commit 74f01d3
Show file tree
Hide file tree
Showing 3 changed files with 17,867 additions and 15,135 deletions.
2 changes: 1 addition & 1 deletion packages/design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"antd-token-previewer": "^2.0.8",
"rc-select": "^14.13.1",
"rc-table": "^7.45.4",
"rc-tree-select": "^5.19.0"
"rc-tree-select": "^5.20.0"
},
"peerDependencies": {
"react": ">=16.9.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/design/src/tree-select/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TreeSelect as AntTreeSelect } from 'antd';
import type { TreeSelectProps as AntTreeSelectProps } from 'antd/es/tree-select';
import type { TreeNode as AntTreeNode } from 'rc-tree-select';
import { TreeNode as AntTreeNode } from 'rc-tree-select';
import type { BaseSelectRef } from 'rc-select';
import classNames from 'classnames';
import React, { useContext } from 'react';
Expand Down 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
Loading

0 comments on commit 74f01d3

Please sign in to comment.