fix: directoryTree custom icon not work #3183

pull/3194/head
tanjinzhou 2020-11-16 15:39:43 +08:00
parent 642291790e
commit 8da63a6a24
2 changed files with 6 additions and 2 deletions

@ -1 +1 @@
Subproject commit ff42f741de836c30b9a80d217d6ea72a0869b933
Subproject commit b24360cc91640d63e25b88bbecdb530823af8913

View File

@ -240,6 +240,10 @@ export default defineComponent({
onExpand: this.handleExpand,
onCheck: this.handleCheck,
};
return <Tree {...treeProps}>{this.children}</Tree>;
return (
<Tree {...treeProps} v-slots={omit(this.$slots, ['default'])}>
{this.children}
</Tree>
);
},
});