Browse Source

Pull request #1916: 无JIRA任务 bugfix

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'd0155ab83a8d6e5ba27b9939f0b3d67216a3b945':
  bugfix
es6
guy 4 years ago
parent
commit
c01df5c318
  1. 12
      src/core/platform/web/config.js

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

@ -60,12 +60,18 @@ BI.prepares.push(function () {
// 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况)
// 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景
if (isAdapt) {
return BI.extend({}, ob, {type: "bi.table_adapt"});
return BI.extend({
horizontalAlign: BI.HorizontalAlign.Center
}, ob, {type: "bi.table_adapt"});
}
if (supportFlex) {
return BI.extend({}, ob, {type: "bi.flex_horizontal"});
return BI.extend({
horizontalAlign: BI.HorizontalAlign.Center
}, ob, {type: "bi.flex_horizontal"});
}
return BI.extend({}, ob, {type: "bi.table_adapt"});
return BI.extend({
horizontalAlign: BI.HorizontalAlign.Center
}, ob, {type: "bi.table_adapt"});
});
BI.Plugin.configWidget("bi.horizontal_float", function (ob) {
if (isSupportFlex()) {

Loading…
Cancel
Save