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] 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 000000000..87b69e667 --- /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 85525362d..ef5baa4d4 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' };