From f15b0f1156259e85769008f01cb5d69ae8273dd2 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 22 Jun 2022 14:50:32 +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/multiselect.loader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widget/multiselect/multiselect.loader.js b/src/widget/multiselect/multiselect.loader.js index 6ab276164..e7e3b2113 100644 --- a/src/widget/multiselect/multiselect.loader.js +++ b/src/widget/multiselect/multiselect.loader.js @@ -70,7 +70,7 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, { ? self.storeValue.value.concat(startValue) : self.storeValue.value })); if (self.storeValue) { - var json = BI.map(self.storeValue.value.slice((op.times - 1) * 10, op.times * 10), function (i, v) { + var json = BI.map(self.storeValue.value.slice((op.times - 1) * 100, op.times * 100), function (i, v) { var txt = opts.valueFormatter(v) || v; return { text: txt, @@ -90,7 +90,7 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, { }); } } - if (op.times < Math.floor((self.storeValue.value.length - 1) / 10)) { + if (op.times < Math.floor((self.storeValue.value.length - 1) / 100)) { hasNext = true; callback(self._createItems(json), op.keyword || ""); (op.times === 1) && self._scrollToTop(); @@ -98,7 +98,7 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, { } firstItems = self._createItems(json); } - var times = op.times - Math.max(0, Math.floor((self.storeValue.value.length - 1) / 10)); + var times = op.times - Math.max(0, Math.floor((self.storeValue.value.length - 1) / 100)); opts.itemsCreator(BI.extend({}, op, { times: times }), function (ob) {