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

是否支持配置禁止选中根节点的属性 #524

Open
willcom95 opened this issue Mar 16, 2023 · 1 comment
Open

是否支持配置禁止选中根节点的属性 #524

willcom95 opened this issue Mar 16, 2023 · 1 comment

Comments

@willcom95
Copy link

No description provided.

@congshengwu
Copy link

congshengwu commented Apr 24, 2024

我这里搜到一个方法

为treeselect组件设置属性::flat="true"
在treeselect组件属性的::normalizer="normalizer"中使用如下函数

normalizer(node) {
  return {
    isDisabled: node.id === 0, // 这里假设根节点的id为0
  }
},

这个库感觉已经完全弃用了,不建议使用

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

2 participants