mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
fix: one page swiper broken (#68)
This commit is contained in:
@@ -36,6 +36,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
const pages = this.$el.querySelectorAll('.van-swipe-item')
|
||||||
|
if (pages.length <= 1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
this.input = new Input(this.$el, {
|
this.input = new Input(this.$el, {
|
||||||
listenMoving: true
|
listenMoving: true
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user