From 4ea057c046f88bdc815a80ca84eacd3c6544d5c3 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 9 Feb 2019 09:30:33 +0800 Subject: [PATCH] fix getComputedStyle (#2705) --- packages/list/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/list/index.js b/packages/list/index.js index b4a06d13d..12092a643 100644 --- a/packages/list/index.js +++ b/packages/list/index.js @@ -5,7 +5,6 @@ import { getScrollTop, getElementTop, getVisibleHeight, - getComputedStyle, getScrollEventTarget } from '../utils/scroll'; @@ -75,7 +74,7 @@ export default sfc({ const scrollerHeight = getVisibleHeight(scroller); /* istanbul ignore next */ - if (!scrollerHeight || getComputedStyle(el).display === 'none' || el.offsetParent === null) { + if (!scrollerHeight || window.getComputedStyle(el).display === 'none' || el.offsetParent === null) { return; }