Browse Source

Pull request #259421: BI-142531 fix: 缓存清空且hasNext为false时仍然显示加载更多数据

Merge in DEC/fineui from ~ZOEY.CHEN/fineui_:final/11.0 to final/11.0

* commit '9384119477626309ce958cbacb065fe5f665574c':
  BI-142531 fix: 缓存清空且hasNext为false时仍然显示加载更多数据
research/test
Zoey.Chen-陈泽语 11 months ago
parent
commit
40d5174afb
  1. 2
      packages/fineui/src/widget/multiselect/loader.js

2
packages/fineui/src/widget/multiselect/loader.js

@ -73,8 +73,8 @@ export class MultiSelectInnerLoader extends Widget {
if (this.cachItems && this.cachItems.length > 0) {
this.next.setLoaded();
const items = this._composeItems(this.cachItems.slice(0, 100));
this.addItems(items);
this.cachItems = this.cachItems.slice(100);
this.addItems(items);
return;
}

Loading…
Cancel
Save