We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 组件展示部门的组织架构,部门下同时有子部门和人员,希望子部门不能被选中(需要禁用),但子部门下的用户可以被选中
希望可以支持,我给父的节点设置disabled: true,然后再给子节点设置disabled: false,实现子节点可选 { label: '江苏省', value: 'jiangsu', disabled: true, children: [ { label: '南京市', value: 'nanjing', disabled: false, }, { label: '苏州市', value: 'suzhou', disabled: false, }, ], },
The text was updated successfully, but these errors were encountered:
👋 @jieyuming,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
打开 check-strictly 即可 https://stackblitz.com/edit/8ivbfp-95x3eb?file=package.json,src%2Fdemo.vue
No branches or pull requests
这个功能解决了什么问题
目前的需求,用TreeSelect 组件展示部门的组织架构,部门下同时有子部门和人员,希望子部门不能被选中(需要禁用),但子部门下的用户可以被选中
你建议的方案是什么
希望可以支持,我给父的节点设置disabled: true,然后再给子节点设置disabled: false,实现子节点可选
{
label: '江苏省',
value: 'jiangsu',
disabled: true,
children: [
{
label: '南京市',
value: 'nanjing',
disabled: false,
},
{
label: '苏州市',
value: 'suzhou',
disabled: false,
},
],
},
The text was updated successfully, but these errors were encountered: