Skip to content

Commit 8da63a6

Browse files
committed
fix: directoryTree custom icon not work #3183
1 parent 6422917 commit 8da63a6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

antdv-demo

components/tree/DirectoryTree.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ export default defineComponent({
240240
onExpand: this.handleExpand,
241241
onCheck: this.handleCheck,
242242
};
243-
return <Tree {...treeProps}>{this.children}</Tree>;
243+
return (
244+
<Tree {...treeProps} v-slots={omit(this.$slots, ['default'])}>
245+
{this.children}
246+
</Tree>
247+
);
244248
},
245249
});

0 commit comments

Comments
 (0)