|
|
|
@ -2,6 +2,7 @@ BI.FlexLeftRightVerticalAdaptLayout = BI.inherit(BI.Layout, {
|
|
|
|
|
props: function () { |
|
|
|
|
return BI.extend(BI.FlexLeftRightVerticalAdaptLayout.superclass.props.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-f-lr-v-c", |
|
|
|
|
columnSize: [], |
|
|
|
|
items: {}, |
|
|
|
|
llgap: 0, |
|
|
|
|
lrgap: 0, |
|
|
|
@ -20,17 +21,19 @@ BI.FlexLeftRightVerticalAdaptLayout = BI.inherit(BI.Layout, {
|
|
|
|
|
render: function () { |
|
|
|
|
var o = this.options, self = this; |
|
|
|
|
BI.FlexLeftRightVerticalAdaptLayout.superclass.render.apply(this, arguments); |
|
|
|
|
var items = this._formatItems(o.items); |
|
|
|
|
return { |
|
|
|
|
type: "bi.flex_vertical_adapt", |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.layout = _ref; |
|
|
|
|
}, |
|
|
|
|
items: this._formatItems(o.items), |
|
|
|
|
columnSize: o.columnSize.slice(0, (o.items.left || []).length).concat((o.items.right || []).length > 0 ? [""] : []), |
|
|
|
|
items: items, |
|
|
|
|
scrollx: o.scrollx, |
|
|
|
|
scrolly: o.scrolly, |
|
|
|
|
scrollable: o.scrollable, |
|
|
|
|
innerHgap: o.innerHgap, |
|
|
|
|
innerVgap: o.innerVgap, |
|
|
|
|
innerVgap: o.innerVgap |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -70,6 +73,7 @@ BI.FlexLeftRightVerticalAdaptLayout = BI.inherit(BI.Layout, {
|
|
|
|
|
return leftItems.concat({ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.flex_vertical_adapt", |
|
|
|
|
columnSize: o.columnSize.slice(leftItems.length), |
|
|
|
|
css: { |
|
|
|
|
"margin-left": "auto" |
|
|
|
|
}, |
|
|
|
|