Browse Source

优化布局

es6
guy 4 years ago
parent
commit
b60e6c2317
  1. 7
      src/core/platform/web/config.js
  2. 2
      src/less/core/wrapper/flex.wrapper.vertical.less

7
src/core/platform/web/config.js

@ -113,6 +113,13 @@ BI.prepares.push(function () {
} }
} }
}); });
BI.Plugin.configWidget("bi.flex_vertical", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
if (ob.hgap > 0 || ob.rgap > 0) {// flex中最后一个margin-right不生效
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"});
}
}
});
BI.Plugin.configWidget("bi.radio", function (ob) { BI.Plugin.configWidget("bi.radio", function (ob) {
if (BI.isIE() && BI.getIEVersion() <= 9) { if (BI.isIE() && BI.getIEVersion() <= 9) {

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

@ -64,7 +64,7 @@
-o-flex-wrap: nowrap; -o-flex-wrap: nowrap;
flex-wrap: nowrap; flex-wrap: nowrap;
min-width: 100%; //min-width: 100%;
&.h-center { &.h-center {
///* 09版 */ ///* 09版 */

Loading…
Cancel
Save