🐛(tree): 修复 tree slots 语法错误
更新文档
This commit is contained in:
parent
db4eac69bf
commit
de53193186
@ -155,8 +155,8 @@ function handleTitleClick(node: TreeData) {
|
|||||||
:only-icon-control="onlyIconControl"
|
:only-icon-control="onlyIconControl"
|
||||||
@node-click="recursiveNodeClick"
|
@node-click="recursiveNodeClick"
|
||||||
>
|
>
|
||||||
<template v-if="slots.title" v-slot:title="{ data }">
|
<template v-if="slots.title">
|
||||||
<slot name="title" :data="data"></slot>
|
<slot name="title" :data="node"></slot>
|
||||||
</template>
|
</template>
|
||||||
</tree-node>
|
</tree-node>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user