派生自 wuyushui/SewerAndRainNetwork

YANGDL
2021-03-04 4d0106c11dba9e86e7d022a61bf625cba1d5cf66
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
  <div class="legend-panel">
    <div class="legend-box" v-if="isShow">
      <div v-for="item in legendList" :key="item.title">
        <div class="legend-title">{{ item.title }}</div>
        <div class="legend-group" v-for="itm in item.details" :key="itm.label">
          <div class="legend-group-icon"></div>
          <div class="legend-group-label">{{ itm.label }}</div>
        </div>
      </div>
    </div>
    <div class="legend-icon unactive" @click="toggle">
 
      <i class="el-icon-more-outline"></i>
      <span>图例</span>
    </div>
 
  </div>
</template>
 
<script>
export default {
  name: 'LegendPanel',
  data () {
    return {
      isShow: false,
      legendList: [
        {
          title: '污雨水管网',
          details: [
            {
              icon: '/assets/images/map/三通.png',
              label: '管线'
            }
          ]
        }
      ]
    }
  },
  methods: {
    toggle () {
      this.isShow = !this.isShow
    }
  }
}
</script>
 
<style lang="less" scoped>
 
.legend-panel {
  position: absolute;
  z-index: 1000;
  color: white;
  //bottom: .11979rem;
  bottom: 4rem;
  //right: .14583rem;
  right: 20rem;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
 
}
 
</style>