| | |
| | | <i class="el-icon-more-outline"></i> |
| | | <span>图例</span> |
| | | </div> |
| | | <`transition` name="fade"> |
| | | <transition name='fade'> |
| | | <div class="legend-content" v-show="legendControl"> |
| | | <div class="legend-content-box" v-for="(item,index) in legendContents" :key="index"> |
| | | <p>{{ item.title }}</p> |
| | | <ul> |
| | | <li v-for="(ite,inde) in item.items" :key="inde"> |
| | | <img :src='ite.legendImage' alt=''> |
| | | <span>{{ ite.legendContent }}</span> |
| | | </li> |
| | | <div v-for="(ite,inde) in item.items" :key="inde"> |
| | | <li> |
| | | <img :src='ite.legendImage' alt=''> |
| | | <span>{{ ite.legendContent }}</span> |
| | | </li> |
| | | </div> |
| | | </ul> |
| | | <div :class="index === 5 ? '':'under-line'"></div> |
| | | </div> |
| | |
| | | }, |
| | | { |
| | | legendImage: '../.././assets/images/map-pages/setting.png', |
| | | legendContent: '油田企业' |
| | | legendContent: '油田企业 ' |
| | | }, |
| | | { |
| | | legendImage: '../.././assets/images/map-pages/setting.png', |
| | |
| | | methods: { |
| | | // 图标 控制内容的展示与隐藏 |
| | | legendChange () { |
| | | // if (this.legendControl === false) { |
| | | // this.legendControl = true |
| | | // } else { |
| | | // this.legendControl = false |
| | | // } |
| | | this.legendControl = !this.legendControl |
| | | } |
| | | } |
| | |
| | | .legend-icon { |
| | | width: 3.4rem; |
| | | height: 1.6rem; |
| | | border-radius: .3rem; |
| | | border-radius: 0.3rem; |
| | | background: white; |
| | | text-align: center; |
| | | } |
| | |
| | | transform: scale(0); |
| | | opacity: 0.3; |
| | | } |
| | | //50% { |
| | | // transform: scale(1.1); |
| | | //} |
| | | 100% { |
| | | transform: scale(1); |
| | | opacity: 1; |
| | |
| | | } |
| | | |
| | | .fade-leave-active { |
| | | //transform-origin: right; |
| | | //animation: bounce-in 1s reverse; |
| | | transform-origin: right bottom; |
| | | animation: bounce-in .5s reverse; |
| | | } |
| | | |
| | | .legend-content { |
| | | position: absolute; |
| | | right: 1rem; |
| | | right: 0.3rem; |
| | | bottom: 3rem; |
| | | width: 30rem; |
| | | height: 30rem; |
| | | border-radius: 1rem; |
| | | background: #3c7699; |
| | | |
| | |
| | | list-style: none; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding-inline: 20px 0; |
| | | margin-block: 0; |
| | | padding: 0; |
| | | padding-inline: 0; |
| | | |
| | | li { |
| | | div { |
| | | width: 25%; |
| | | height: 1.5rem; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin: 0.1rem 0; |
| | | |
| | | img { |
| | | height: 18px; |
| | | width: 18px; |
| | | } |
| | | li { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | margin-left: 15px; |
| | | margin-right: 15px; |
| | | |
| | | span { |
| | | font-size: 12px; |
| | | color: white; |
| | | img { |
| | | height: 18px; |
| | | width: 18px; |
| | | } |
| | | |
| | | span { |
| | | width: 80px; |
| | | font-size: 12px; |
| | | color: white; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | .under-line { |
| | | height: 2px; |
| | | background: #7bc5ef; |
| | | margin-block-start: 0.5rem; |
| | | margin-block-start: 0; |
| | | margin-block-end: 0; |
| | | } |
| | | } |