Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeSelect props.treeProps.valueMode no work #3195

Closed
qiaoqiaowang opened this issue Nov 12, 2024 · 2 comments
Closed

TreeSelect props.treeProps.valueMode no work #3195

qiaoqiaowang opened this issue Nov 12, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@qiaoqiaowang
Copy link

https://codesandbox.io/p/sandbox/tdesign-react-demo-forked-4npd3m?file=%2Fsrc%2Fdemo.tsx%3A52%2C22
单选的时候,valueMode为onlyLeaf,但是还是可以选中父节点 

Copy link
Contributor

👋 @qiaoqiaowang,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn
Copy link
Collaborator

uyarn commented Nov 13, 2024

这个API不是说不可以选中,是返回值里面只返回子节点的值 可以参考这个示例 https://tdesign.tencent.com/react/components/tree#%E5%8F%AF%E9%80%89%E6%8B%A9%E7%9A%84%E6%A0%91
打开控制台体验

@uyarn uyarn closed this as completed Nov 13, 2024
@uyarn uyarn added the invalid This doesn't seem right label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants