From 2034df2a527b0c051f4aed84962e77e5f7721820 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 22 Feb 2021 17:39:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?BI-81812=20fix:=20=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/wrapper/layout/flex/flex.horizontal.center.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/wrapper/layout/flex/flex.horizontal.center.js b/src/core/wrapper/layout/flex/flex.horizontal.center.js index ef5baa4d4b..85525362d1 100644 --- a/src/core/wrapper/layout/flex/flex.horizontal.center.js +++ b/src/core/wrapper/layout/flex/flex.horizontal.center.js @@ -55,3 +55,6 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, { }); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_center_adapt", BI.FlexHorizontalCenter); + +// ts化兼容处理, bi.horizontal_float对应布局被删了 +BI.FloatHorizontalLayout = { xtype: 'bi.horizontal_float' }; From a7f15e8c33688bd701b4ceee589634eb549d97a9 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 23 Feb 2021 17:20:36 +0800 Subject: [PATCH 2/3] update --- src/core/wrapper/layout/adapt/float.horizontal.js | 5 +++++ src/core/wrapper/layout/flex/flex.horizontal.center.js | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 src/core/wrapper/layout/adapt/float.horizontal.js diff --git a/src/core/wrapper/layout/adapt/float.horizontal.js b/src/core/wrapper/layout/adapt/float.horizontal.js new file mode 100644 index 0000000000..87b69e667c --- /dev/null +++ b/src/core/wrapper/layout/adapt/float.horizontal.js @@ -0,0 +1,5 @@ +/** + * 浮动的水平居中布局 + */ +BI.FloatHorizontalLayout = {}; +BI.shortcut("bi.horizontal_float", BI.FloatHorizontalLayout); diff --git a/src/core/wrapper/layout/flex/flex.horizontal.center.js b/src/core/wrapper/layout/flex/flex.horizontal.center.js index 85525362d1..ef5baa4d4b 100644 --- a/src/core/wrapper/layout/flex/flex.horizontal.center.js +++ b/src/core/wrapper/layout/flex/flex.horizontal.center.js @@ -55,6 +55,3 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, { }); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_center_adapt", BI.FlexHorizontalCenter); - -// ts化兼容处理, bi.horizontal_float对应布局被删了 -BI.FloatHorizontalLayout = { xtype: 'bi.horizontal_float' }; From a8dcce9c8221450bf331fe96fdf5bbe7f0283120 Mon Sep 17 00:00:00 2001 From: windy Date: Tue, 23 Feb 2021 20:39:33 +0800 Subject: [PATCH 3/3] update --- src/core/wrapper/layout/adapt/float.horizontal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/wrapper/layout/adapt/float.horizontal.js b/src/core/wrapper/layout/adapt/float.horizontal.js index 87b69e667c..77667c0ac5 100644 --- a/src/core/wrapper/layout/adapt/float.horizontal.js +++ b/src/core/wrapper/layout/adapt/float.horizontal.js @@ -1,5 +1,5 @@ /** * 浮动的水平居中布局 */ -BI.FloatHorizontalLayout = {}; +BI.FloatHorizontalLayout = BI.Layout; BI.shortcut("bi.horizontal_float", BI.FloatHorizontalLayout);