Browse Source

整理代码

es6
guy 3 years ago
parent
commit
5461ce76ba
  1. 14
      src/core/wrapper/layout/float/float.horizontal.js

14
src/core/wrapper/layout/float/float.horizontal.js

@ -29,12 +29,16 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, {
items: this._formatItems(o.items),
vgap: o.vgap,
tgap: o.tgap,
bgap: o.bgap
bgap: o.bgap,
scrollx: o.scrollx,
scrolly: o.scrolly,
scrollable: o.scrollable
};
}
return {
type: "bi.inline",
items: [{
el: {
type: "bi.vertical",
ref: function (_ref) {
self.layout = _ref;
@ -43,9 +47,13 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, {
vgap: o.vgap,
tgap: o.tgap,
bgap: o.bgap
}
}],
horizontalAlign: o.horizontalAlign,
verticalAlign: o.verticalAlign
verticalAlign: o.verticalAlign,
scrollx: o.scrollx,
scrolly: o.scrolly,
scrollable: o.scrollable
};
},
@ -53,6 +61,7 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, {
var o = this.options;
return BI.map(items, function (i, item) {
return {
el: {
type: "bi.inline_horizontal_adapt",
horizontalAlign: o.horizontalAlign,
items: [item],
@ -60,6 +69,7 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, {
lgap: o.lgap,
rgap: o.rgap
}
};
});
},

Loading…
Cancel
Save