Skip to content

Commit 8dd2c5b

Browse files
committed
fix: tree-select-node not registered
1 parent fbcf0bf commit 8dd2c5b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

components/tree-select/index.jsx

+3-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ import DownOutlined from '@ant-design/icons-vue/DownOutlined';
1313
import CloseOutlined from '@ant-design/icons-vue/CloseOutlined';
1414
import CloseCircleOutlined from '@ant-design/icons-vue/CloseCircleOutlined';
1515
import omit from 'omit.js';
16-
const ATreeSelectNode = function ATreeSelectNode(props, ctx) {
17-
return TreeNode(props, ctx);
18-
};
19-
Object.keys(TreeNode).forEach(key => (ATreeSelectNode[key] = TreeNode[key]));
16+
2017
const TreeSelect = {
21-
TreeNode: ATreeSelectNode,
18+
TreeNode,
2219
SHOW_ALL,
2320
SHOW_PARENT,
2421
SHOW_CHILD,
@@ -204,7 +201,7 @@ const TreeSelect = {
204201
/* istanbul ignore next */
205202
TreeSelect.install = function(app) {
206203
app.component(TreeSelect.name, TreeSelect);
207-
app.component(TreeSelect.TreeNode.name, TreeSelect.TreeNode);
204+
app.component('ATreeSelectNode', TreeSelect.TreeNode);
208205
};
209206

210207
export default TreeSelect;

0 commit comments

Comments
 (0)