Browse Source

Pull request #1550: REPORT-41507 revert之前修改,由应用层控制合并值而不在内部处理

Merge in VISUAL/fineui from ~TELLER/fineui:master to master

* commit 'f09e93ce8038623e702fcba4dfd4ca12cce89d67':
  Revert "REPORT-40996 fix: 同步树节点不需要设置check"
es6
Teller 4 years ago
parent
commit
5c038fb541
  1. 10
      src/component/treevaluechooser/abstract.treevaluechooser.js

10
src/component/treevaluechooser/abstract.treevaluechooser.js

@ -565,19 +565,15 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
parentCheckState.half = find.halfCheck; parentCheckState.half = find.halfCheck;
} }
var state = getCheckState(node.value, node.parentValues, valueMap, parentCheckState); var state = getCheckState(node.value, node.parentValues, valueMap, parentCheckState);
var isParent = node.getChildrenLength() > 0;
result.push({ result.push({
id: node.id, id: node.id,
pId: node.pId, pId: node.pId,
value: node.value, value: node.value,
text: node.text, text: node.text,
times: 1, times: 1,
isParent: isParent, isParent: node.getChildrenLength() > 0,
// 同步树的情况下,父亲节点的状态由子控制,不再设置checked和halfCheck属性 checked: state[0],
// 叶子节点本身不存在halfCheck属性且checked属性由计算得到 halfCheck: state[1],
checked: isParent ? undefined : state[0],
// halfCheck: state[1],
open: self.options.open open: self.options.open
}); });
}); });

Loading…
Cancel
Save