Browse Source

fix: 将地图点击事件从map元素移至父容器

点击事件处理从map元素移动到父view容器,以避免事件冲突并统一交互行为
master
前端-胡立永 2 days ago
parent
commit
4e8ec0a951
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      components/base/mapCard.vue

+ 2
- 2
components/base/mapCard.vue View File

@ -1,5 +1,5 @@
<template>
<view class="map-card">
<view class="map-card" @click="onMapTap">
<!-- 地图区域 -->
<view class="map-container">
<map
@ -13,8 +13,8 @@
:enable-overlooking="false"
:enable-traffic="false"
class="map"
@tap="onMapTap"
></map>
<!-- @tap.stop="onMapTap" -->
</view>
<!-- 地址信息区域 -->


Loading…
Cancel
Save