From 4b64392b7aa803c985eb225345fd52c8d817bc8c Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 6 Mar 2022 18:14:49 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20items=E5=92=8Cvalue=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=87=AA=E5=8A=A8watch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/collection/collection.js | 6 +++--- src/base/grid/grid.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/base/collection/collection.js b/src/base/collection/collection.js index ae287ca91..8605e70c5 100644 --- a/src/base/collection/collection.js +++ b/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"; } } diff --git a/src/base/grid/grid.js b/src/base/grid/grid.js index 76a86ead8..b264660a7 100644 --- a/src/base/grid/grid.js +++ b/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"; } }