mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
[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