From 7442ed4c306ef9b3bec43202592f86dee59ceb30 Mon Sep 17 00:00:00 2001
From: YANGDL <114714267@qq.com>
Date: 星期三, 23 十二月 2020 15:24:14 +0800
Subject: [PATCH] 优化逻辑

---
 src/components/LayerController/LayerController.vue |   31 ++++++++++++++++++++++---------
 1 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/src/components/LayerController/LayerController.vue b/src/components/LayerController/LayerController.vue
index 1255f2a..616af98 100644
--- a/src/components/LayerController/LayerController.vue
+++ b/src/components/LayerController/LayerController.vue
@@ -14,10 +14,9 @@
         </div>
       </div>
     </div>
-    <div class="body" id="panelContent">
+    <div class="bodyBox" id="panelContent">
       <div id="panelInnerContent" style="height: auto; overflow: hidden;">
-        
-          
+        <slot></slot>
       </div>
     </div>
   </div>
@@ -29,6 +28,8 @@
 import '@assets/css/map/magic.min.css'
 import presets from './layerControllerPresets'
 import $ from 'jquery'
+
+import iconSetting from '@/assets/images/map-pages/icon/setting.png'
 
 export default {
   name: 'LayerController',
@@ -49,6 +50,9 @@
   },
   data() {
     return {
+      icons:{
+        setting:iconSetting
+      },
       panelSwitch: {
         main: true // 涓荤獥鍙�
       }
@@ -147,7 +151,7 @@
     height: 22px;
     margin-top: 4px;
     margin-left: 2px;
-    background: url(/assets/images/map-page/icon/setting.png);
+    background-image: url(/assets/images/map-pages/icon/setting.png);
   }
   .titleText{
     float: left;
@@ -157,6 +161,7 @@
     line-height: 20px;
     font-weight: bold;
     margin-top: 6px;
+    text-align: left;
     filter: brightness(100%);
     text-shadow: 0 0 5px #00d0f9, 0 0 0 #00d0f9, 0 0 0 #00d0f9, 0 0 0 #0258c5, 0 0 0 #0258c5, 0 0 2px #0258c5, 0 0 5px #0258c5, 0 0 15px #0258c5;
   }
@@ -189,6 +194,14 @@
       color: white;
     }
   }
+
+  .bodyBox{
+    background-color: rgba(0x04, 0x52, 0x7f, 0.6);
+    border: 1px solid #10488c;
+    margin-top: -1px;
+    height: auto;
+  }
+
   .switchHeadUp{
     width: 22px;
     height: 16px;
@@ -196,7 +209,7 @@
     margin-top: 10px;
     margin-right: 10px;
     cursor: pointer;
-    background: url(/assets/images/map-page/icon/xljt1.png);
+    background-image: url(/assets/images/map-pages/icon/xljt1.png);
     transform: rotateX(0deg);
     transform-origin: 50% 50%;
     transition: transform 0.5s linear 0s;
@@ -221,22 +234,22 @@
     position: absolute;
   }
   .horn-tl{
-    background: url(/assets/images/map-page/cosmetics/horn_tl.png) center center no-repeat;
+    background-image: url(/assets/images/map-pages/cosmetics/horn_tl.png) center center no-repeat;
     left: -1px;
     top: -1px;
   }
   .horn-tr{
-    background: url(/assets/images/map-page/cosmetics/horn_tr.png) center center no-repeat;
+    background-image: url(/assets/images/map-pages/cosmetics/horn_tr.png) center center no-repeat;
     right: -1px;
     top: -1px;
   }
   .horn-bl{
-    background: url(/assets/images/map-page/cosmetics/horn_bl.png) center center no-repeat;
+    background-image: url(/assets/images/map-pages/cosmetics/horn_bl.png) center center no-repeat;
     left: -1px;
     bottom: -1px;
   }
   .horn-br{
-    background: url(/assets/images/map-page/cosmetics/horn_br.png) center center no-repeat;
+    background-image: url(/assets/images/map-pages/cosmetics/horn_br.png) center center no-repeat;
     right: -1px;
     bottom: -1px;
   }

--
Gitblit v1.8.0