Browse Source

BI-113579 可配置

research/test
windy 2 years ago
parent
commit
9d94d01f09
  1. 3
      src/widget/multiselect/multiselect.loader.js
  2. 1
      src/widget/multiselectlist/multiselectlist.insert.js
  3. 1
      src/widget/multiselectlist/multiselectlist.js

3
src/widget/multiselect/multiselect.loader.js

@ -20,6 +20,7 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, {
itemFormatter: BI.emptyFn, itemFormatter: BI.emptyFn,
onLoaded: BI.emptyFn, onLoaded: BI.emptyFn,
itemHeight: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT, itemHeight: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT,
isDefaultInit: false,
}); });
}, },
@ -45,7 +46,7 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, {
onLoaded: opts.onLoaded, onLoaded: opts.onLoaded,
el: { el: {
type: "bi.multi_select_inner_loader", type: "bi.multi_select_inner_loader",
isDefaultInit: false, isDefaultInit: opts.isDefaultInit,
} }
}, opts.el), }, opts.el),
itemsCreator: function (op, callback) { itemsCreator: function (op, callback) {

1
src/widget/multiselectlist/multiselectlist.insert.js

@ -34,6 +34,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, {
}, },
// onLoaded: o.onLoaded, // onLoaded: o.onLoaded,
el: {}, el: {},
isDefaultInit: true,
value: o.value value: o.value
}); });
this.adapter.on(BI.MultiSelectLoader.EVENT_CHANGE, function () { this.adapter.on(BI.MultiSelectLoader.EVENT_CHANGE, function () {

1
src/widget/multiselectlist/multiselectlist.js

@ -31,6 +31,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
logic: { logic: {
dynamic: false dynamic: false
}, },
isDefaultInit: true,
// onLoaded: o.onLoaded, // onLoaded: o.onLoaded,
el: {} el: {}
}); });

Loading…
Cancel
Save