From 934bd1bb66a9d2ea90e9c07a56ce6c907860c72f Mon Sep 17 00:00:00 2001 From: He xiang Date: Tue, 14 Mar 2017 12:13:05 +0800 Subject: [PATCH] fix smoothScroll.animateScroll parameter error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "List Rendering > Array Change Detection" > You can open the console and play with the previous examples’ items array by calling their mutation methods. For example: example1.items.push({ message: 'Baz' }) ecec `example1.items.push({ message: 'Baz' })` throw error --- src/v2/guide/list.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v2/guide/list.md b/src/v2/guide/list.md index 8b382cef7a..a58a97e1f0 100644 --- a/src/v2/guide/list.md +++ b/src/v2/guide/list.md @@ -49,7 +49,7 @@ var example1 = new Vue({ }, watch: { items: function () { - smoothScroll.animateScroll(null, '#example-1') + smoothScroll.animateScroll(document.querySelector('#example-1')) } } }) @@ -99,7 +99,7 @@ var example2 = new Vue({ }, watch: { items: function () { - smoothScroll.animateScroll(null, '#example-2') +     smoothScroll.animateScroll(document.querySelector('#example-2')) } } })