Browse Source

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

research/test
chenzeyu 10 months ago
parent
commit
9384119477
  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