[bugfix] IndexBar: should update when index-list updated (#3943)
This commit is contained in:
@@ -76,6 +76,12 @@ export default createComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
watch: {
|
||||||
|
indexList() {
|
||||||
|
this.$nextTick(this.onScroll);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onScroll() {
|
onScroll() {
|
||||||
let scrollTop;
|
let scrollTop;
|
||||||
|
|||||||
Reference in New Issue
Block a user