提交 09087e31 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

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

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