mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix: one page swiper broken (#68)
This commit is contained in:
parent
5e02c59736
commit
26dd47d4dd
@ -36,6 +36,11 @@ export default {
|
||||
},
|
||||
|
||||
mounted() {
|
||||
const pages = this.$el.querySelectorAll('.van-swipe-item')
|
||||
if (pages.length <= 1) {
|
||||
return
|
||||
}
|
||||
|
||||
this.input = new Input(this.$el, {
|
||||
listenMoving: true
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user