From 727383972b27689465c878126f53684cc663dfe8 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 15 Jun 2022 13:10:06 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E5=B8=83=E5=B1=80=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wrapper/layout/flex/flex.leftrightvertical.center.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/wrapper/layout/flex/flex.leftrightvertical.center.js b/src/core/wrapper/layout/flex/flex.leftrightvertical.center.js index 155d72541..b52b1e456 100644 --- a/src/core/wrapper/layout/flex/flex.leftrightvertical.center.js +++ b/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 }; },