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' };