Skip to content

Commit a4492cc

Browse files
committed
fix: 修复索引列表点击索引不滚动的Bug
1 parent c540f7f commit a4492cc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎components/uni-indexed-list/uni-indexed-list.vue‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@
169169
if (item) {
170170
this.scrollViewId = 'uni-indexed-list-' + item.key
171171
this.touchmoveIndex = index
172+
// #ifdef APP-NVUE
173+
dom.scrollToElement(this.$refs['uni-indexed-list-' + item.key][0], {
174+
animated: false
175+
})
176+
// #endif
172177
}
173178
},
174179
touchMove(e) {

0 commit comments

Comments
 (0)