Browse Source

Merge pull request #176298 in DEC/fineui from master to feature/x

* commit '04446fa43e7a73072e2fa0fc09e0daf3b64dc9d9':
  chore: 优化
research/test
superman 2 years ago
parent
commit
8f23a18f18
  1. 4
      src/widget/multiselectlist/multiselectlist.js

4
src/widget/multiselectlist/multiselectlist.js

@ -15,7 +15,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
BI.MultiSelectList.superclass._init.apply(this, arguments);
var self = this, o = this.options;
this.storeValue = {};
this.storeValue = this._assertValue(o.value || {});
var assertShowValue = function () {
BI.isKey(self._startValue) && (self.storeValue.type === BI.Selection.All ? BI.remove(self.storeValue.value, self._startValue) : BI.pushDistinct(self.storeValue.value, self._startValue));
@ -31,6 +31,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
logic: {
dynamic: false
},
value: o.value,
isDefaultInit: true,
// onLoaded: o.onLoaded,
el: {}
@ -198,6 +199,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
val || (val = {});
val.type || (val.type = BI.Selection.Multi);
val.value || (val.value = []);
return val;
},
_makeMap: function (values) {

Loading…
Cancel
Save