Prechádzať zdrojové kódy

fix: 修改地图弹窗样式

lxf 2 mesiacov pred
rodič
commit
183d908d20

+ 2 - 0
src/views/warningHome/index.vue

@@ -226,11 +226,13 @@ onMounted(() => {
     background: rgb(35, 35, 35, 0.86);
     color: #fff;
     font-size: 16px;
+    border-radius: 4px;
     .warning-info-title {
         display: flex;
         padding: 6px 10px;
         background: rgba(255, 255, 255, 0.05);
         font-size: 18px;
+        border-radius: 4px 4px 0 0;
         .icon {
             padding-right: 6px;
         }

+ 2 - 2
src/views/warningHome/warningMap.js

@@ -34,8 +34,8 @@ class HomeMap {
     // 创建弹窗图层
     this.popup = new Overlay({
       element: document.getElementById('popup'),
-      positioning: 'bottom-center',
-      offset: [0, -10],
+      positioning: 'right-center',
+      offset: [10, 10],
     });
     this.kmap.map.addOverlay(this.popup);
     setTimeout(() => {