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

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

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