Browse Source

BI-82977 fix: 树控件搜索状态展开父节点的状态下勾选节点在有分页的情况下不对

es6
windy 4 years ago
parent
commit
afee8e3057
  1. 4
      src/base/tree/ztree/parttree.js

4
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;
}

Loading…
Cancel
Save