|
|
|
@ -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 |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|