提交 2d3a1c61 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor(swiper): 屏蔽小程序不支持方法

上级 cc77154b
......@@ -128,6 +128,7 @@
}
},
onReady() {
// #ifndef MP
// 获取模拟滑动手势的起始点
let ele = uni.getElementById("swiper-view")
let eleRect = ele?.getBoundingClientRect()
......@@ -135,6 +136,7 @@
this.swipeX = eleRect.width - 10
this.swipeY += eleRect.y + uni.getSystemInfoSync().safeArea.top + 44 + 35
}
// #endif
},
methods: {
swipertouchStart(e: UniTouchEvent) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册