🐛(tree): 修复 tree slots 语法错误
更新文档
This commit is contained in:
parent
db4eac69bf
commit
de53193186
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user