🐛(tree): 修复 tree slots 语法错误

更新文档
This commit is contained in:
就眠儀式 2022-06-19 17:15:02 +08:00
parent db4eac69bf
commit de53193186

View File

@ -155,8 +155,8 @@ function handleTitleClick(node: TreeData) {
:only-icon-control="onlyIconControl"
@node-click="recursiveNodeClick"
>
<template v-if="slots.title" v-slot:title="{ data }">
<slot name="title" :data="data"></slot>
<template v-if="slots.title">
<slot name="title" :data="node"></slot>
</template>
</tree-node>
</div>