Browse Source

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

Merge in VISUAL/fineui from ~WINDY/fineui:master to master

* commit 'dc1414b3518909620ac8300b6f461f738c3f36bc':
  DEC-13261 fix: 需要保证当前展示的节点halfCheck置为false
es6
windy 5 years ago
parent
commit
b9a5c4b8ca
  1. 1
      changelog.md
  2. 6
      src/base/tree/ztree/asynctree.js

1
changelog.md

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

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

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

Loading…
Cancel
Save