Browse Source

Pull request #239894: BI-128988 fix: 【来源PT项目】文本过滤组件文本列表勾选状态异常 - 提交final

Merge in DEC/fineui from ~DAILER/fineui-decision:final/11.0 to final/11.0

* commit 'aa987b66da5ea0367f37e1db8df530a63cb2ae6b':
  BI-128988 fix: 【来源PT项目】文本过滤组件文本列表勾选状态异常 - 提交final
research/test
Dailer-刘荣歆 12 months ago
parent
commit
26de2e9e21
  1. 21
      src/widget/multiselect/loader.js

21
src/widget/multiselect/loader.js

@ -158,6 +158,11 @@ BI.MultiSelectInnerLoader = BI.inherit(BI.Widget, {
this.next.setEnd();
}
}
// cacheGroup渲染的是全量的,如果这次加载更多add的items是从cacheItems里面拿的,那不用再add了
if (this.cachItems.length > 0) {
this.button_group.addItems(...arguments);
return;
}
var renderEngine = BI.Widget._renderEngine;
BI.Widget.registerRenderEngine(BI.Element.renderEngine);
this.cachGroup.addItems.apply(this.cachGroup, arguments);
@ -183,13 +188,6 @@ BI.MultiSelectInnerLoader = BI.inherit(BI.Widget, {
this.times = 1;
this.count = 0;
this.count += items.length;
if (BI.isObject(this.next)) {
if (this.hasNext()) {
this.next.setLoaded();
} else {
this.next.invisible();
}
}
return true;
},
@ -205,6 +203,15 @@ BI.MultiSelectInnerLoader = BI.inherit(BI.Widget, {
this.cachGroup.populate.call(this.cachGroup, items, keyword);
BI.Widget.registerRenderEngine(renderEngine);
this.button_group.populate.call(this.button_group, items.slice(0, firstItemsCount), keyword);
// hasNext依赖的是cacheItems计算,所以从_populate挪到populate里面
if (BI.isObject(this.next)) {
if (this.hasNext()) {
this.next.setLoaded();
} else {
this.next.invisible();
}
}
}
},

Loading…
Cancel
Save