Browse Source

feature: 选中数据支持分页

es6
guy 3 years ago
parent
commit
f32bd98612
  1. 2
      src/widget/multiselect/multiselect.loader.js
  2. 2
      src/widget/multiselect/multiselect.loader.nobar.js

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

@ -103,7 +103,7 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, {
times: times
}), function (ob) {
hasNext = ob.hasNext;
callback(firstItems.concat(self._createItems(ob.items)), ob.keyword || "");
callback(firstItems.concat(self._createItems(ob.items)), ob.keyword || op.keyword || "");
if (times === 1 && self.storeValue) {
BI.isKey(startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, startValue) : BI.pushDistinct(self.storeValue.value, startValue));
self.setValue(self.storeValue);

2
src/widget/multiselect/multiselect.loader.nobar.js

@ -94,7 +94,7 @@ BI.MultiSelectNoBarLoader = BI.inherit(BI.Widget, {
times: times
}), function (ob) {
hasNext = ob.hasNext;
callback(firstItems.concat(self._createItems(ob.items)), ob.keyword || "");
callback(firstItems.concat(self._createItems(ob.items)), ob.keyword || op.keyword || "");
if (times === 1 && self.storeValue) {
BI.isKey(startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, startValue) : BI.pushDistinct(self.storeValue.value, startValue));
self.setValue(self.storeValue);

Loading…
Cancel
Save