From dc1414b3518909620ac8300b6f461f738c3f36bc Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 12 May 2020 17:08:18 +0800 Subject: [PATCH] =?UTF-8?q?DEC-13261=20fix:=20=E9=9C=80=E8=A6=81=E4=BF=9D?= =?UTF-8?q?=E8=AF=81=E5=BD=93=E5=89=8D=E5=B1=95=E7=A4=BA=E7=9A=84=E8=8A=82?= =?UTF-8?q?=E7=82=B9halfCheck=E7=BD=AE=E4=B8=BAfalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 1 + src/base/tree/ztree/asynctree.js | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 2d898fca1..863646487 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 a26affd56..08dc695c7 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); }); }