vue-tree icon indicating copy to clipboard operation
vue-tree copied to clipboard

建议增加节点渲染的slot

Open Dr-Harris opened this issue 2 years ago • 1 comments

树节点可能会渲染比较复杂的DOM结构,通过slot放在template中会比 render 方法更加直观 参考element-plus的使用方式:

<VTree>
  <template #node={ node }>
    <div class="custom-node">{{ node.name }}</div>
  </template>
</VTree>

Dr-Harris avatar Sep 14 '23 06:09 Dr-Harris

同感!

zhoushengdong avatar Nov 26 '23 15:11 zhoushengdong

@zhoushengdong 4.0.0已更新

Dr-Harris avatar Jun 26 '24 03:06 Dr-Harris