From 97a7d4a2a256b9171bca05e69d154996645b4722 Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期二, 16 三月 2021 10:29:58 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master --- src/components/LayerController/LayerController.vue | 72 +++++++++++++++-------------------- 1 files changed, 31 insertions(+), 41 deletions(-) diff --git a/src/components/LayerController/LayerController.vue b/src/components/LayerController/LayerController.vue index 743f80c..8f24ad7 100644 --- a/src/components/LayerController/LayerController.vue +++ b/src/components/LayerController/LayerController.vue @@ -1,22 +1,16 @@ <template> <div class="float-panel"> - <i class="horn horn-br"></i> - <i class="horn horn-bl"></i> - <div class="head title-border"> - <div class="title-text-border"> - <div class="title-icon"></div> - <div class="title-text">涓氬姟鐪嬫澘</div> - <div class="title-button" :class="{'switch-head-up':true, 'switch-head-down': !panelSwitch.main}" - @click="switchPanel"> - <!-- <i class="el-icon-arrow-down"></i> --> + <div class="title-text-border" @click="switchPanel"> + <div class="title-icon"></div> + <div class="title-text">鍥惧眰鎺у埗</div> + </div> + <transition name="el-fade-in-linear"> + <div class="body-box" id="panelContent" :style="{ width:width }"> + <div v-show="isShow"> + <slot></slot> </div> </div> - </div> - <div class="body-box" id="panelContent"> - <div id="panelInnerContent" :style="{ height:height }"> - <slot></slot> - </div> - </div> + </transition> </div> </template> @@ -51,7 +45,8 @@ }, data () { return { - height: '200px', + width: '250px', + isShow: true, icons: { setting: iconSetting }, @@ -83,9 +78,11 @@ switchPanel () { this.panelSwitch.main = !this.panelSwitch.main if (this.panelSwitch.main) { - this.height = '200px' + this.width = '250px' + this.isShow = true } else { - this.height = '0px' + this.width = '0px' + this.isShow = false } } } @@ -96,20 +93,13 @@ .float-panel { position: absolute; - left: 10px; - bottom: 10px; - width: 230px; + top: 120px; height: auto; font-size: 11px; z-index: 1000; div { color: #90c8e0; - } - - #panelInnerContent { - overflow: hidden; - transition: all 0.5s linear; } .title-border { @@ -146,11 +136,12 @@ } .title-text-border { - width: 100%; - height: 28px; + width: 30px; + height: 120px; + float: left; background: #091331; - -webkit-clip-path: polygon(1px 1px, 1px 27px, 229px 27px, 229px 10px, 94px 10px, 85px 1px); - clip-path: polygon(1px 1px, 1px 27px, 229px 27px, 229px 10px, 94px 10px, 85px 1px); + // -webkit-clip-path: polygon(1px 1px, 1px 27px, 229px 27px, 229px 10px, 94px 10px, 85px 1px); + // clip-path: polygon(1px 1px, 1px 27px, 229px 27px, 229px 10px, 94px 10px, 85px 1px); } .title-icon { @@ -159,18 +150,16 @@ height: 22px; margin-top: 4px; margin-left: 2px; - background-image: url(/assets/images/map-pages/icon/setting.png); + background-image: url(../../assets/images/map-pages/icon/setting.png); } .title-text { - float: left; - width: 150px; + width: 25px; color: #00d0f9; - margin-left: 4px; - line-height: 20px; font-weight: bold; margin-top: 6px; - text-align: left; + text-align: center; + font-size: 14px; 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; } @@ -212,6 +201,7 @@ background-color: rgba(44, 62, 80, 0.6); border: 1px solid #10488c; margin-top: -1px; + margin-left: 30px; height: auto; } @@ -222,7 +212,7 @@ margin-top: 10px; margin-right: 10px; cursor: pointer; - background-image: url(/assets/images/map-pages/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; @@ -251,25 +241,25 @@ } .horn-tl { - background-image: url(/assets/images/map-pages/cosmetics/horn_tl.png) center center no-repeat; + background-image: url(../../assets/images/map-pages/cosmetics/horn_tl.png); left: -1px; top: -1px; } .horn-tr { - background-image: url(/assets/images/map-pages/cosmetics/horn_tr.png) center center no-repeat; + background-image: url(../../assets/images/map-pages/cosmetics/horn_tr.png); right: -1px; top: -1px; } .horn-bl { - background-image: url(/assets/images/map-pages/cosmetics/horn_bl.png) center center no-repeat; + background-image: url(../../assets/images/map-pages/cosmetics/horn_bl.png); left: -1px; bottom: -1px; } .horn-br { - background-image: url(/assets/images/map-pages/cosmetics/horn_br.png) center center no-repeat; + background-image: url(../../assets/images/map-pages/cosmetics/horn_br.png); right: -1px; bottom: -1px; } -- Gitblit v1.8.0