Browse Source

feature: 布局优化

es6
guy 2 years ago
parent
commit
727383972b
  1. 7
      src/core/wrapper/layout/flex/flex.leftrightvertical.center.js

7
src/core/wrapper/layout/flex/flex.leftrightvertical.center.js

@ -21,18 +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;
},
columnSize: o.columnSize,
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
};
},

Loading…
Cancel
Save