Browse Source

DEC-13261 fix: 需要保证当前展示的节点halfCheck置为false

es6
windy 5 years ago
parent
commit
dc1414b351
  1. 1
      changelog.md
  2. 6
      src/base/tree/ztree/asynctree.js

1
changelog.md

@ -1,5 +1,6 @@
# 更新日志
2.0(2020-05)
- 修复树系列多层半选状态下,勾选祖先节点,后代节点不受影响的问题
- 修复上传控件多个title问题
2.0(2020-04)

6
src/base/tree/ztree/asynctree.js

@ -74,10 +74,8 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
// 所有的半选状态都需要取消halfCheck=true的情况
function track (children) {
BI.each(children, function (i, ch) {
if (ch.halfCheck === true) {
ch.halfCheck = false;
track(ch.children);
}
ch.halfCheck = false;
track(ch.children);
});
}

Loading…
Cancel
Save