提交 1da86614 编写于 作者: Q qiang

feat: swiper 组件支持 disable-touch(App、H5)

fix: swiper disableTouch update
上级 5623740d
......@@ -61,6 +61,10 @@ export default {
displayMultipleItems: {
type: [Number, String],
default: 1
},
disableTouch: {
type: [Boolean, String],
default: false
}
},
data () {
......@@ -538,6 +542,9 @@ export default {
}
},
_handleContentTrack (e) {
if (this.disableTouch) {
return
}
if (!this._invalid) {
if (e.detail.state === 'start') {
this.userTracking = true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册