Replies: 4 comments 6 replies
-
是不是可以把选中的节点信息也传过来,很多场景需要获取当前选中节点的信息 |
Beta Was this translation helpful? Give feedback.
2 replies
-
加上 titleExtra 后每个节点都会渲染, 需要考虑怎么方便判断 某个节点不需要titleExtra 。 |
Beta Was this translation helpful? Give feedback.
4 replies
-
https://codesandbox.io/s/ji-ben-antd-5-6-4-forked-rmhwhh?file=/demo.tsx 使用 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
📋 RFC
Summary
Tree provide
titleExtra
to add additional content injection.Basic example
Motivation
Tree with additional node operation is common usage in real world. Developer have to patch extra effect to realize this. It's better to provided by default.
Detailed
titleExtra
accept nodeData as param for customize:And add node on the end of edge of node title. Which should not override title content.
Drawbacks
Noop
Adoption strategy
Provided in feature branch.
Beta Was this translation helpful? Give feedback.
All reactions