From 9fb8dfd1fd9b71dc05fbe604d6211e3cd7f86c8a Mon Sep 17 00:00:00 2001 From: zsmj Date: Mon, 26 Sep 2022 17:24:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20cherr=20pick?= =?UTF-8?q?=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/treevaluechooser/abstract.treevaluechooser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/treevaluechooser/abstract.treevaluechooser.js b/src/component/treevaluechooser/abstract.treevaluechooser.js index eb918abf9..2edc16e50 100644 --- a/src/component/treevaluechooser/abstract.treevaluechooser.js +++ b/src/component/treevaluechooser/abstract.treevaluechooser.js @@ -586,7 +586,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { value: node.value, text: node.text, times: 1, - isParent: node.getChildrenLength() > 0, + isParent: nodes[i].isParent || nodes[i].getChildrenLength() > 0, checked: state[0], halfCheck: state[1], open: self.options.open, @@ -701,7 +701,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { times: 1, isParent: false, checked: true, - halfCheck: false + halfCheck: false, }; }); },