From 777e3ea3e398688643048bfb63022a2d31482b79 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 19 Aug 2021 14:46:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout/flex/flex.center.js | 8 ++++---- src/core/wrapper/layout/flex/flex.horizontal.center.js | 8 ++++---- src/core/wrapper/layout/flex/flex.vertical.center.js | 8 ++++---- .../wrapper/layout/flex/wrapper/flex.wrapper.center.js | 8 ++++---- .../layout/flex/wrapper/flex.wrapper.horizontal.center.js | 8 ++++---- .../layout/flex/wrapper/flex.wrapper.vertical.center.js | 8 ++++---- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/core/wrapper/layout/flex/flex.center.js b/src/core/wrapper/layout/flex/flex.center.js index 09c81b792..0bf886ca8 100644 --- a/src/core/wrapper/layout/flex/flex.center.js +++ b/src/core/wrapper/layout/flex/flex.center.js @@ -24,7 +24,7 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, { return { type: "bi.flex_horizontal", ref: function (_ref) { - self.wrapper = _ref; + self.layout = _ref; }, horizontalAlign: o.horizontalAlign, verticalAlign: o.verticalAlign, @@ -42,15 +42,15 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, { }, resize: function () { - this.wrapper.resize(); + this.layout.resize(); }, update: function (opt) { - return this.wrapper.update(opt); + return this.layout.update(opt); }, populate: function (items) { - this.wrapper.populate(items); + this.layout.populate(items); } }); BI.shortcut("bi.flex_center_adapt", BI.FlexCenterLayout); diff --git a/src/core/wrapper/layout/flex/flex.horizontal.center.js b/src/core/wrapper/layout/flex/flex.horizontal.center.js index 028ef748f..8af01988c 100644 --- a/src/core/wrapper/layout/flex/flex.horizontal.center.js +++ b/src/core/wrapper/layout/flex/flex.horizontal.center.js @@ -25,7 +25,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, { return { type: "bi.flex_vertical", ref: function (_ref) { - self.wrapper = _ref; + self.layout = _ref; }, horizontalAlign: o.horizontalAlign, verticalAlign: o.verticalAlign, @@ -43,15 +43,15 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, { }, resize: function () { - this.wrapper.resize(); + this.layout.resize(); }, update: function (opt) { - return this.wrapper.update(opt); + return this.layout.update(opt); }, populate: function (items) { - this.wrapper.populate(items); + this.layout.populate(items); } }); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); diff --git a/src/core/wrapper/layout/flex/flex.vertical.center.js b/src/core/wrapper/layout/flex/flex.vertical.center.js index 533ac2fa9..8b27066af 100644 --- a/src/core/wrapper/layout/flex/flex.vertical.center.js +++ b/src/core/wrapper/layout/flex/flex.vertical.center.js @@ -26,7 +26,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, { return { type: "bi.flex_horizontal", ref: function (_ref) { - self.wrapper = _ref; + self.layout = _ref; }, verticalAlign: o.verticalAlign, horizontalAlign: o.horizontalAlign, @@ -44,15 +44,15 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, { }, resize: function () { - this.wrapper.resize(); + this.layout.resize(); }, update: function (opt) { - return this.wrapper.update(opt); + return this.layout.update(opt); }, populate: function (items) { - this.wrapper.populate(items); + this.layout.populate(items); } }); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); diff --git a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js index 740030e76..eeb66dd20 100644 --- a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js +++ b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js @@ -27,7 +27,7 @@ BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, { return { type: "bi.flex_scrollable_horizontal", ref: function (_ref) { - self.wrapper = _ref; + self.layout = _ref; }, horizontalAlign: o.horizontalAlign, verticalAlign: o.verticalAlign, @@ -45,15 +45,15 @@ BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, { }, resize: function () { - this.wrapper.resize(); + this.layout.resize(); }, update: function (opt) { - return this.wrapper.update(opt); + return this.layout.update(opt); }, populate: function (items) { - this.wrapper.populate(items); + this.layout.populate(items); } }); BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexWrapperCenterLayout); diff --git a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js index 3d4d28c2c..e03babc6c 100644 --- a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js +++ b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js @@ -27,7 +27,7 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, { return { type: "bi.flex_scrollable_vertical", ref: function (_ref) { - self.wrapper = _ref; + self.layout = _ref; }, horizontalAlign: o.horizontalAlign, verticalAlign: o.verticalAlign, @@ -45,15 +45,15 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, { }, resize: function () { - this.wrapper.resize(); + this.layout.resize(); }, update: function (opt) { - return this.wrapper.update(opt); + return this.layout.update(opt); }, populate: function (items) { - this.wrapper.populate(items); + this.layout.populate(items); } }); BI.shortcut("bi.flex_scrollable_horizontal_adapt", BI.FlexWrapperHorizontalCenter); diff --git a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js index af072c1a6..d5e7096b1 100644 --- a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js +++ b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js @@ -27,7 +27,7 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, { return { type: "bi.flex_scrollable_horizontal", ref: function (_ref) { - self.wrapper = _ref; + self.layout = _ref; }, verticalAlign: o.verticalAlign, horizontalAlign: o.horizontalAlign, @@ -45,15 +45,15 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, { }, resize: function () { - this.wrapper.resize(); + this.layout.resize(); }, update: function (opt) { - return this.wrapper.update(opt); + return this.layout.update(opt); }, populate: function (items) { - this.wrapper.populate(items); + this.layout.populate(items); } }); BI.shortcut("bi.flex_scrollable_vertical_adapt", BI.FlexWrapperVerticalCenter);