Legend.vue 806 Bytes
<template>
  <div class="legend">
    <div class="legend-item flex" v-for="item in 5">
      <span></span>
      湘
    </div>
  </div>
</template>
<script>
export default {
  name: 'Legend',
  data() {
    return {}
  },
  mounted() {},
  methods: {}
}
</script>

<style lang="scss" scoped>
.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 7.7vw;
  height: 8.54vh;
  margin-left: 0.42vw;
  .legend-item {
    width: 3.68vw;
    height: 2.44vh;
    background: #0d133b;
    align-items: center;
    font-size: 9px;
    color: #fff;
    margin: 0 2px 2px 0;
    box-sizing: border-box;
    line-height: 2.44vh;
    margin: 2px 2px 0 0;
    span {
      width: 5px;
      height: 5px;
      background: #bf98ff;
      border-radius: 50%;
      margin: 4px;
    }
  }
}
</style>