Browse Source

feature: sticky布局

es6
guy 3 years ago
parent
commit
760e7c0bc9
  1. 4
      src/core/platform/web/config.js

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

@ -164,12 +164,12 @@ BI.prepares.push(function () {
}); });
}); });
BI.Plugin.configWidget("bi.horizontal_sticky", function (ob) { BI.Plugin.configWidget("bi.horizontal_sticky", function (ob) {
if (isSupportSticky) { if (!isSupportSticky) {
return BI.extend({}, ob, {type: "bi.horizontal_fill"}); return BI.extend({}, ob, {type: "bi.horizontal_fill"});
} }
}); });
BI.Plugin.configWidget("bi.vertical_sticky", function (ob) { BI.Plugin.configWidget("bi.vertical_sticky", function (ob) {
if (isSupportSticky) { if (!isSupportSticky) {
return BI.extend({}, ob, {type: "bi.vertical_fill"}); return BI.extend({}, ob, {type: "bi.vertical_fill"});
} }
}); });

Loading…
Cancel
Save