소스 검색

修改新建图片隐藏amap-info

wangfumin 3 주 전
부모
커밋
42f9e6f13c
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/view/case/drawMap/creatMap.vue

+ 5 - 1
src/view/case/drawMap/creatMap.vue

@@ -23,7 +23,7 @@
         </div>
 
       <!-- 地图容器 -->
-      <div class="map-container">
+      <div class="map-container" v-if="visible">
         <div id="container" class="map" style="width: 800px; height: 600px" tabindex="0"></div>
       </div>
     </div>
@@ -112,6 +112,7 @@ watch(() => props.modelValue, (newVal) => {
 }, { immediate: true })
 
 watch(visible, (newVal) => {
+  selectedSearchAdress.value = '1'
   emit('update:modelValue', newVal)
 })
 
@@ -582,6 +583,9 @@ onUnmounted(() => {
     .amap-marker{
         display: none!important;
     }
+    .amap-info-contentContainer{
+      display: none!important;
+    }
 }
 </style>
 <style scoped lang="scss">