调整滚动触发时机

This commit is contained in:
mengxiaolong
2021-01-13 14:08:15 +08:00
parent 13007bc551
commit e78a63e4b7

View File

@@ -82,10 +82,9 @@ export default {
},
onInputFocus() {
this.showCustomer = true
this.$refs.search_box.scrollTo({
top: 0,
behavior: 'smooth'
})
setTimeout(() => {
this.$refs.picker.scrollIntoView()
}, 300)
this.$nextTick(() => {
this.$refs.picker.scrollTo({
top: 0,