support label to be a React Node in TreeSelect
See original GitHub issueWhat problem does this feature solve?
want to add some extra info before tree node, for example user avatar, but now it will throw a warning: Invalid prop 'value' supplied to 'Select'
What does the proposed API look like?
same as now but support label to be a React Node
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
TreeSelect - Ant Design
Property Description Default
allowClear Whether allow clear false
bordered Whether has border style true
defaultValue To set the initial selected treeNode(s) ‑
Read more >React TreeSelect Component - PrimeFaces
Label of an option is used as the display text of an item by default, for custom content support define a valueTemplate that...
Read more >rc-tree-select - npm
tree-select ui component for react. ... rc-tree-select. React TreeSelect Component ... Node, halfChecked}/Array<{value,label,halfChecked}>.
Read more >ReactJS UI Ant Design TreeSelect Component - GeeksforGeeks
TreeSelect Component is used for the Tree selection control. ... labelInValue: It is used to indicate whether to embed label in value.
Read more >Antd tree Multi-TreeSelect make difference between labels ...
You could define a valueLabelMap and use it in combination with TreeSelect 's onChange handler to set the custom label.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
奥,对的,在 1.10.13 上也修正了。
antd里 “rc-tree-select”: “~1.10.2”, 这个依赖只会更新到1.10.x,不会更新到v1.12.3