提交 dff0f765 编写于 作者: d-u-a's avatar d-u-a

fix: vue map @markertap 回调不正确的Bug

上级 c9577694
......@@ -255,7 +255,7 @@ export default {
})
},
controlclick (e) {
this.$trigger('controltap', {}, { id: e.id })
this.$trigger('controltap', {}, { controlId: e.id })
},
_publishHandler (callbackId, data) {
UniViewJSBridge.publishHandler('onMapMethodCallback', {
......@@ -299,13 +299,13 @@ export default {
if (id || id === 0) {
nativeMarker.onclick = (e) => {
this.$trigger('markertap', {}, {
id
markerId: id
})
}
if (nativeBubble) {
nativeBubble.onclick = () => {
this.$trigger('callouttap', {}, {
id
markerId: id
})
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册