Tree可以增加title、extra、icon等slot方便自定义
FaberSober opened this issue · comments
Farando commented
问题的清晰而简明的描述
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
验证
CandyACE commented
可以通过renderLabel 来自定义渲染内容
jahnli commented
render-label
render-switcher-icon