tusen-ai / naive-ui

A Vue 3 Component Library. Fairly Complete. Theme Customizable. Uses TypeScript. Fast.

Home Page:https://www.naiveui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tree可以增加title、extra、icon等slot方便自定义

FaberSober opened this issue · comments

问题的清晰而简明的描述

Tree可以增加title、extra、icon等slot方便自定义

建议的解决方案

Tree可以增加title、extra、icon等slot方便自定义

title 标题 title: string  
extra 渲染额外的节点内容 -  
drag-icon 定制 drag 图标 -  
loading-icon 定制 loading 图标 -  
switcher-icon 定制 switcher 图标 -  
icon 定制节点图标 node: TreeNodeData

备选方案

No response

附加上下文

No response

验证

  • 阅读 贡献指南
  • 阅读 文档
  • 检查是否已经存在请求相同功能的问题,以避免创建重复的问题。

可以通过renderLabel 来自定义渲染内容

render-label render-switcher-icon