提交 2a9b2f72 编写于 作者: W wanganxp

完善子超父点击区域演示页面

上级 a71eac3a
...@@ -23,10 +23,11 @@ ...@@ -23,10 +23,11 @@
methods: { methods: {
handleClickOverflowPart() { handleClickOverflowPart() {
console.log("click"); console.log("click");
this.jest_result = true; this.jest_result = true;
uni.showToast({"title":"点击红色区域"})
}, },
handleTouchMoveOverflowPart() { handleTouchMoveOverflowPart(e:UniTouchEvent) {
console.log("move"); console.log("touchmove:" + e.touches[0].clientX + "," + e.touches[0].clientY);
}, },
jest_getRect() { jest_getRect() {
const rect = uni.getElementById('child')?.getBoundingClientRect() const rect = uni.getElementById('child')?.getBoundingClientRect()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册