| | |
| | | <template> |
| | | <div class="legend-panel"> |
| | | |
| | | <transition name="fade"> |
| | | <div class="legend-content" v-show="legendControl"> |
| | | <div :class="'legend-content map-background'" v-show="legendControl"> |
| | | <div class="legend-content-box" v-for="(item,index) in legendContents" :key="index"> |
| | | <p><span>{{ item.title }}</span></p> |
| | | <div :class="index === 5 ? '':'under-line'"></div> |
| | | <ul > |
| | | <!-- <div >--> |
| | | <div :class="index === 5 ? '':'map-under-line'"></div> |
| | | <ul> |
| | | <li v-for="(ite,inde) in item.items" :key="inde"> |
| | | <img :src='ite.legendImage' alt=''> |
| | | <span>{{ ite.legendContent }}</span> |
| | | </li> |
| | | |
| | | <!-- </div>--> |
| | | </ul> |
| | | |
| | | </div> |
| | | </div> |
| | | </transition> |
| | | <div class="legend-icon unactive" @click="legendChange()"> |
| | | <i class="el-icon-more-outline"></i> |
| | | <span>图例</span> |
| | | </div> |
| | | <el-tooltip :popper-class="'map-tooltip'" effect="dark" content="图例" placement="left"> |
| | | <div :class="this.legendControl?'legend-btn map-btn-active':'legend-btn map-btn-unactive'" |
| | | @click="legendChange()"> |
| | | <i class="el-icon-more-outline"></i> |
| | | </div> |
| | | </el-tooltip> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'LegendPanel', |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | <style lang="less"> |
| | | @import '@assets/css/map/_map-variable'; |
| | | .legend-panel { |
| | | position: absolute; |
| | |
| | | -ms-flex-align: end; |
| | | //align-items: flex-end; |
| | | transition: all .5s; |
| | | .legend-icon { |
| | | width: .29167rem; |
| | | height: .31771rem; |
| | | |
| | | .legend-btn { |
| | | width: .2rem; |
| | | height: .2rem; |
| | | //font-size: .08333rem; |
| | | border: .00521rem solid rgba(0,255,246,.15); |
| | | border-radius: .03125rem; |
| | | border: .00521rem solid @background-color-light; |
| | | border-radius: @border-radius; |
| | | text-align: center; |
| | | display: -webkit-box; |
| | | display: -ms-flexbox; |
| | |
| | | background: @background-color; |
| | | margin-top: .04167rem; |
| | | cursor: pointer; |
| | | color: @color; |
| | | //color: @color; |
| | | margin-left: auto; |
| | | font-size: 0.08333rem; |
| | | } |
| | |
| | | -webkit-box-direction: reverse; |
| | | -ms-flex-direction: row-reverse; |
| | | flex-direction: row-reverse; |
| | | background: rgba(0,16,30,.9); |
| | | border-radius: .05208rem; |
| | | |
| | | width: -webkit-max-content; |
| | | width: -moz-max-content; |
| | | width: max-content; |
| | | border: .00521rem solid @color; |
| | | box-shadow: 0 0 .03rem @color; |
| | | |
| | | overflow: hidden; |
| | | min-height: 1.28646rem; |
| | | |
| | |
| | | font-size: 0.07292rem; |
| | | padding: .10417rem; |
| | | border-left: .00521rem solid @background-color-split; |
| | | |
| | | p { |
| | | text-align: center; |
| | | margin: 0 !important; |
| | |
| | | -webkit-margin-after: 0.2rem; |
| | | margin-block-end: 0.2rem; |
| | | margin-bottom: 0.05208rem !important; |
| | | |
| | | span { |
| | | color: @color-title; |
| | | font-size: .08333rem; |
| | |
| | | |
| | | ul { |
| | | list-style: none; |
| | | //display: flex; |
| | | flex-wrap: wrap; |
| | | margin: 0 !important; |
| | | padding: 0 !important;; |
| | | padding-inline: 0; |
| | | //color: #00fff6; |
| | | //font-size: .07292rem; |
| | | font-size: .08333rem; |
| | | |
| | | li { |
| | | //width: 100%; |
| | | //display: flex; |
| | | //justify-content: space-around; |
| | | //margin-left: 15px; |
| | | //margin-right: 15px; |
| | | list-style: none; |
| | | display: flex; |
| | | -webkit-box-align: center; |
| | | align-items: center; |
| | | margin: 0.05208rem 0; |
| | | img { |
| | | width: .08333rem; |
| | | height: .08333rem; |
| | | margin-right: .01042rem; |
| | | } |
| | | li { |
| | | list-style: none; |
| | | display: flex; |
| | | -webkit-box-align: center; |
| | | align-items: center; |
| | | margin: 0.05208rem 0; |
| | | |
| | | span { |
| | | //width: 80px; |
| | | //font-size: 12px; |
| | | color: @color; |
| | | } |
| | | img { |
| | | width: .08333rem; |
| | | height: .08333rem; |
| | | margin-right: .01042rem; |
| | | } |
| | | |
| | | span { |
| | | color: @color; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .under-line { |
| | | height: 1px; |
| | | background: @background-color-split; |
| | | margin-block-start: 0; |
| | | margin-block-end: 0; |
| | | } |
| | | } |
| | | } |
| | | </style> |