Browse Source

优化布局

es6
guy 4 years ago
parent
commit
c0c4f25a37
  1. 2
      src/core/wrapper/layout/flex/flex.leftrightvertical.center.js
  2. 4
      src/less/core/wrapper/flex.wrapper.horizontal.less
  3. 8
      src/less/core/wrapper/flex.wrapper.vertical.less

2
src/core/wrapper/layout/flex/flex.leftrightvertical.center.js

@ -57,7 +57,7 @@ BI.FlexLeftRightVerticalAdaptLayout = BI.inherit(BI.Layout, {
rightItems = BI.map(rightItems, function (i, item) {
if (i === 0) {
if (BI.isWidget(item)) {
item.addClass("flex-left-auto");
item.element.addClass("flex-left-auto");
} else {
var t = BI.stripEL(item);
t.cls = (t.cls || "") + " flex-left-auto";

4
src/less/core/wrapper/flex.wrapper.horizontal.less

@ -149,6 +149,10 @@
align-items: stretch;
}
&.h-stretch {
min-width: 100%;
}
&.h-center {
///* 09版 */
//-webkit-box-pack: center;

8
src/less/core/wrapper/flex.wrapper.vertical.less

@ -132,10 +132,6 @@
margin-left: auto !important;
margin-right: auto !important;
}
&.v-middle {
min-height: 100%;
}
}
&.h-right {
@ -162,6 +158,10 @@
align-items: stretch;
}
&.v-stretch {
min-height: 100%;
}
&.v-middle {
///* 09版 */
//-webkit-box-pack: center;

Loading…
Cancel
Save