提交 69441ac0 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix(map): 修复h5端 markertap 触发 map tap

上级 a5dad220
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
}) })
this.$parent._markers[this.idString] = marker this.$parent._markers[this.idString] = marker
this.updateMarker(props) this.updateMarker(props)
maps.event.addListener(marker, 'click', () => { maps.event.addListener(marker, 'click', (e) => {
const callout = marker.callout const callout = marker.callout
if (callout) { if (callout) {
const div = callout.div const div = callout.div
...@@ -113,6 +113,9 @@ export default { ...@@ -113,6 +113,9 @@ export default {
markerId: Number(this.idString) markerId: Number(this.idString)
}) })
} }
const event = e.event || e.domEvent
event.stopPropagation()
}) })
}, },
updateMarker (option) { updateMarker (option) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册