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 ] 支持动态设置节点是否可选和勾选回填策略, #4849

Open
shuaqq2004 opened this issue Dec 18, 2024 · 1 comment

Comments

@shuaqq2004
Copy link

shuaqq2004 commented Dec 18, 2024

这个功能解决了什么问题

  1. 在很多时候, 我们想快速级联选中所有的节点,选中值是包含所有节点的,而非只有子节点或只有父节点。
  2. 属性中多选,但是只要部分的节点才可选。

你建议的方案是什么

在多选时,选中可以默认选中子节点或者父节点,或者全部节点。目前的话勾选父级级联只能有子节点。
类似于:https://ant-design.antgroup.com/components/tree-select-cn 中的showCheckedStrategy与treeCheckStrictly的配合属性。

DEMO样式:Node Checkable 和 勾选回填策略
https://antblazor.com/zh-CN/components/treeselect#components-treeselect-demo-node-checkable

Tasks

Preview Give feedback
No tasks being tracked yet.
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant