Vue-Giant-Tree icon indicating copy to clipboard operation
Vue-Giant-Tree copied to clipboard

如何通过插槽自定义节点?

Open anrananran opened this issue 3 years ago • 1 comments

比如这样:

<gtree>
  <div slot="node" slot-scope="scope">
    <span>{{ scope.node.nodeName }}</span>
    <el-button size="mini" @click="onEditClick(scope.node)">编辑</el-button>
    <el-button size="mini" @click="onDelClick(scope.node)">删除</el-button>
  </div>
</gtree>

anrananran avatar Dec 27 '21 06:12 anrananran

同问

doudou-dream avatar May 09 '22 00:05 doudou-dream

同问

faf-xff avatar Jul 27 '23 10:07 faf-xff