Browse Source

feature: items和value支持自动watch

es6
guy 3 years ago
parent
commit
4b64392b7a
  1. 6
      src/base/collection/collection.js
  2. 6
      src/base/grid/grid.js

6
src/base/collection/collection.js

@ -54,14 +54,14 @@ BI.CollectionView = BI.inherit(BI.Widget, {
});
// 兼容一下
var scrollable = o.scrollable, scrollx = o.scrollx, scrolly = o.scrolly;
if (overflowX === false) {
if (overflowY === false) {
if (o.overflowX === false) {
if (o.overflowY === false) {
scrollable = false;
} else {
scrollable = "y"
}
} else {
if (overflowY === false) {
if (o.overflowY === false) {
scrollable = "x";
}
}

6
src/base/grid/grid.js

@ -57,14 +57,14 @@ BI.GridView = BI.inherit(BI.Widget, {
});
// 兼容一下
var scrollable = o.scrollable, scrollx = o.scrollx, scrolly = o.scrolly;
if (overflowX === false) {
if (overflowY === false) {
if (o.overflowX === false) {
if (o.overflowY === false) {
scrollable = false;
} else {
scrollable = "y"
}
} else {
if (overflowY === false) {
if (o.overflowY === false) {
scrollable = "x";
}
}

Loading…
Cancel
Save