Skip to content

Commit 6854605

Browse files
committed
fix: tree not trigger loadData
close #4835
1 parent 8f77208 commit 6854605

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/vc-tree/TreeNode.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ export default defineComponent({
286286
syncLoadData();
287287
});
288288
onUpdated(() => {
289-
//syncLoadData();
289+
// https://github.com/vueComponent/ant-design-vue/issues/4835
290+
syncLoadData();
290291
});
291292

292293
// Switcher

components/vc-tree/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// base rc-tree 5.0.1
12
import type { TreeProps, TreeNodeProps } from './props';
23
import Tree from './Tree';
34
import TreeNode from './TreeNode';

0 commit comments

Comments
 (0)