From 4d0d54dbf417bbdcfc796c723d0ae4edd08a6fd5 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 23 Jul 2019 20:50:08 +0800 Subject: [PATCH] [bugfix] IndexBar: should update when index-list updated (#3943) --- src/index-bar/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index-bar/index.js b/src/index-bar/index.js index 891f2c30b..9d08b491c 100644 --- a/src/index-bar/index.js +++ b/src/index-bar/index.js @@ -76,6 +76,12 @@ export default createComponent({ } }, + watch: { + indexList() { + this.$nextTick(this.onScroll); + } + }, + methods: { onScroll() { let scrollTop;