From f09e93ce8038623e702fcba4dfd4ca12cce89d67 Mon Sep 17 00:00:00 2001 From: iapyang Date: Mon, 26 Oct 2020 10:52:46 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"REPORT-40996=20fix:=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=A0=91=E8=8A=82=E7=82=B9=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E8=AE=BE=E7=BD=AEcheck"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ad2184c220a9b8e88baee72d7ecc159549b0abc8. --- .../treevaluechooser/abstract.treevaluechooser.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/component/treevaluechooser/abstract.treevaluechooser.js b/src/component/treevaluechooser/abstract.treevaluechooser.js index 15bbd07f9..fb5ec8306 100644 --- a/src/component/treevaluechooser/abstract.treevaluechooser.js +++ b/src/component/treevaluechooser/abstract.treevaluechooser.js @@ -565,19 +565,15 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { parentCheckState.half = find.halfCheck; } var state = getCheckState(node.value, node.parentValues, valueMap, parentCheckState); - - var isParent = node.getChildrenLength() > 0; result.push({ id: node.id, pId: node.pId, value: node.value, text: node.text, times: 1, - isParent: isParent, - // 同步树的情况下,父亲节点的状态由子控制,不再设置checked和halfCheck属性 - // 叶子节点本身不存在halfCheck属性且checked属性由计算得到 - checked: isParent ? undefined : state[0], - // halfCheck: state[1], + isParent: node.getChildrenLength() > 0, + checked: state[0], + halfCheck: state[1], open: self.options.open }); });