Browse Source

BI-45174 feature: combo的动态布局

es6
imp 6 years ago
parent
commit
10b8d15dc9
  1. 14
      src/base/combination/combo.js

14
src/base/combination/combo.js

@ -10,6 +10,9 @@ BI.Combo = BI.inherit(BI.Widget, {
trigger: "click",
toggle: true,
direction: "bottom", // top||bottom||left||right||top,left||top,right||bottom,left||bottom,right
logic: {
dynamic: true
},
container: null, // popupview放置的容器,默认为this.element
isDefaultInit: false,
destroyWhenHide: false,
@ -67,14 +70,13 @@ BI.Combo = BI.inherit(BI.Widget, {
}
});
BI.createWidget({
type: "bi.vertical",
scrolly: false,
element: this,
BI.createWidget(BI.extend({
element: this
}, BI.LogicFactory.createLogic("vertical", BI.extend(o.logic, {
items: [
{el: this.combo}
{ el: this.combo }
]
});
}))));
o.isDefaultInit && (this._assertPopupView());
BI.Resizers.add(this.getName(), BI.bind(function () {
if (this.isViewVisible()) {

Loading…
Cancel
Save