From 03a1a7b2ffa5c0613733b9fd6c0a6b4cc6aa91fb Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 23 Jun 2022 18:24:28 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E9=80=89=E4=B8=AD=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/multiselect/loader.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/widget/multiselect/loader.js b/src/widget/multiselect/loader.js index 7eddae550..f6b6bd3de 100644 --- a/src/widget/multiselect/loader.js +++ b/src/widget/multiselect/loader.js @@ -49,8 +49,8 @@ BI.MultiSelectInnerLoader = BI.inherit(BI.Widget, { this.next.setLoading(); if (this.cachItems && this.cachItems.length > 0) { this.next.setLoaded(); - this.addItems(this.cachItems.slice(0, 10)); - this.cachItems = this.cachItems.slice(10); + this.addItems(this.cachItems.slice(0, 100)); + this.cachItems = this.cachItems.slice(100); return; } o.itemsCreator.apply(this, [{times: ++this.times}, function () { @@ -161,7 +161,7 @@ BI.MultiSelectInnerLoader = BI.inherit(BI.Widget, { }]); return false; } - this.options.items = (items || []).slice(0, 10); + this.options.items = (items || []).slice(0, 100); this.times = 1; this.count = 0; this.count += items.length; @@ -178,11 +178,11 @@ BI.MultiSelectInnerLoader = BI.inherit(BI.Widget, { populate: function (items, keyword) { if (this._populate.apply(this, arguments)) { this.cachItems = []; - if (items.length > 10) { - this.cachItems = items.slice(10); + if (items.length > 100) { + this.cachItems = items.slice(100); } this.cachGroup.populate.call(this.cachGroup, items, keyword); - this.button_group.populate.call(this.button_group, items.slice(0, 10), keyword); + this.button_group.populate.call(this.button_group, items.slice(0, 100), keyword); } },