<template>
  <box
    componentkey="Map"
    title="地图位置"
  >
    <div class="wrapper">
      <div
        :class="{ full }"
        class="map"
      />
    </div>
  </box>
</template>

<script>
import Box from './Box'
export default {
  components: {
    Box
  },
  props: {
    full: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style lang="scss" scoped>
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.map {
  width: 100%;
  height: 100%;
  background-image: url("~@/assets/map.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.full.map {
  width: 984px;
  height: 556px;
}
</style>
