From afee8e3057757081349324f6328907db85f65b68 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 15 Mar 2021 10:10:10 +0800 Subject: [PATCH] =?UTF-8?q?BI-82977=20fix:=20=E6=A0=91=E6=8E=A7=E4=BB=B6?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=8A=B6=E6=80=81=E5=B1=95=E5=BC=80=E7=88=B6?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E7=9A=84=E7=8A=B6=E6=80=81=E4=B8=8B=E5=8B=BE?= =?UTF-8?q?=E9=80=89=E8=8A=82=E7=82=B9=E5=9C=A8=E6=9C=89=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/tree/ztree/parttree.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/base/tree/ztree/parttree.js b/src/base/tree/ztree/parttree.js index 974196b33..e1cc6fa37 100644 --- a/src/base/tree/ztree/parttree.js +++ b/src/base/tree/ztree/parttree.js @@ -93,7 +93,9 @@ BI.PartTree = BI.inherit(BI.AsyncTree, { // if(checkState.checked === true && checkState.half === false && nodes[i].flag === true){ // continue; // } - if (BI.isNotEmptyArray(node.children)) { + // 未展开当前节点和展开当前节点后点击全选应该表现一致 + // 这两种情况的check_Child_State分别为-1和2 + if (BI.isNotEmptyArray(node.children) && node.check_Child_State !== 2) { track(node.children); return true; }