diff --git a/changelog.md b/changelog.md index 2d898fca17..863646487c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-05) +- 修复树系列多层半选状态下,勾选祖先节点,后代节点不受影响的问题 - 修复上传控件多个title问题 2.0(2020-04) diff --git a/src/base/tree/ztree/asynctree.js b/src/base/tree/ztree/asynctree.js index a26affd56b..08dc695c7e 100644 --- a/src/base/tree/ztree/asynctree.js +++ b/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); }); }