Browse Source

DEC-2957 部门树层级过高时候concat重复数据过多,卡死了.

master
Dailer 7 years ago
parent
commit
9072bb878b
  1. 2
      src/base/combination/tree.button.js

2
src/base/combination/tree.button.js

@ -78,7 +78,7 @@ BI.ButtonTree = BI.inherit(BI.ButtonGroup, {
var v = [];
BI.each(this.buttons, function (i, item) {
if (item.isEnabled() && !BI.isFunction(item.setSelected)) {
v = BI.concat(v, item.getValue());
v = BI.union(v, item.getValue());
return;
}
if (item.isEnabled() && item.isSelected && item.isSelected()) {

Loading…
Cancel
Save