提交 28506e4e 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

解决 touch-events-bubbles 在 Android 平台编译报错的问题

(cherry picked from commit 09087e31)
上级 23704bac
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
return { return {
iconRect: null as DOMRect | null, iconRect: null as DOMRect | null,
viewEleRect: null as DOMRect | null, viewEleRect: null as DOMRect | null,
touchstartValue: [], touchstartValue: [] as string[],
touchmoveValue: [], touchmoveValue: [] as string[],
touchendValue: [], touchendValue: [] as string[],
ret1: false, ret1: false,
ret2: false ret2: false
} }
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
this.clearValue() this.clearValue()
}, },
onTouchStart(e : TouchEvent) { onTouchStart(e : TouchEvent) {
let _id = e.currentTarget!.attributes.get("id") let _id = e.currentTarget!.attributes.get("id") as string
if (!this.touchstartValue.includes(_id)) { if (!this.touchstartValue.includes(_id)) {
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
onTouchMove(e : TouchEvent) { onTouchMove(e : TouchEvent) {
let _id = e.currentTarget!.attributes.get("id") let _id = e.currentTarget!.attributes.get("id") as string
if (!this.touchmoveValue.includes(_id)) { if (!this.touchmoveValue.includes(_id)) {
this.touchmoveValue.push(_id) this.touchmoveValue.push(_id)
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
}, },
onTouchEnd(e : TouchEvent) { onTouchEnd(e : TouchEvent) {
let _id = e.currentTarget!.attributes.get("id") let _id = e.currentTarget!.attributes.get("id") as string
if (!this.touchendValue.includes(_id)) { if (!this.touchendValue.includes(_id)) {
this.touchendValue.push(_id) this.touchendValue.push(_id)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册