| | |
| | | <template> |
| | | <div class="float-panel"> |
| | | <i class="horn horn-br"></i> |
| | | <i class="horn horn-bl"></i> |
| | | <!-- <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> |
| | | <div class="body-box" id="panelContent"> |
| | | <div id="panelInnerContent" :style="{ height:height }"> |
| | | <slot></slot> |
| | | <transition name="el-fade-in"> |
| | | <div v-show="isShow"> |
| | | <slot></slot> |
| | | </div> |
| | | </transition> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | data () { |
| | | return { |
| | | height: '200px', |
| | | isShow: true, |
| | | icons: { |
| | | setting: iconSetting |
| | | }, |
| | |
| | | this.panelSwitch.main = !this.panelSwitch.main |
| | | if (this.panelSwitch.main) { |
| | | this.height = '200px' |
| | | this.isShow = true |
| | | } else { |
| | | this.height = '0px' |
| | | this.isShow = false |
| | | } |
| | | } |
| | | } |
| | |
| | | .float-panel { |
| | | position: absolute; |
| | | left: 10px; |
| | | bottom: 10px; |
| | | top: 45%; |
| | | width: 230px; |
| | | height: auto; |
| | | font-size: 11px; |
| | |
| | | overflow: hidden; |
| | | transition: all 0.5s linear; |
| | | } |
| | | |
| | | .title-border { |
| | | width: 100%; |
| | | height: 28px; |
| | |
| | | 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 { |
| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | .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; |
| | | } |