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

Fix: 禁用的树节点不被父节点影响 #217

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MuttonYung
Copy link

当前的版本
虽然子节点被禁用,但可以通过父节点选中被禁用的子节点
disabled和disableCheckbox两个属性仅有的区别为

  • disabled禁用了响应函数
  • disabled会设置额外的样式(Classes),但是似乎这些样式是空的

修改后
disabled的节点无法被父节点选中

目前存在的问题:
没有处理子节点,因此可以通过子节点选中disabled的父节点
可能的方案:考虑到实际使用,可以将disabled节点显示为叶子节点,无法展开
或者 将disabled节点的子节点全部设置为disabled的

Tree 树形控件

API

Children

属性 说明 类型 默认值
disabled 禁用checkbox和响应,不能被父节点选中 Boolean false
disableCheckbox 禁掉 checkbox Boolean false

@luokeWeb
Copy link

现在还没有解决吗官方是跑路了吧

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

Successfully merging this pull request may close these issues.

2 participants