Map.vue 751 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <box
  3. componentkey="Map"
  4. title="地图位置"
  5. >
  6. <div class="wrapper">
  7. <div
  8. :class="{ full }"
  9. class="map"
  10. />
  11. </div>
  12. </box>
  13. </template>
  14. <script>
  15. import Box from './Box'
  16. export default {
  17. components: {
  18. Box
  19. },
  20. props: {
  21. full: {
  22. type: Boolean,
  23. default: false
  24. }
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .wrapper {
  30. display: flex;
  31. align-items: center;
  32. justify-content: center;
  33. width: 100%;
  34. height: 100%;
  35. overflow: hidden;
  36. }
  37. .map {
  38. width: 100%;
  39. height: 100%;
  40. background-image: url("~@/assets/map.png");
  41. background-size: cover;
  42. background-position: center;
  43. background-repeat: no-repeat;
  44. }
  45. .full.map {
  46. width: 984px;
  47. height: 556px;
  48. }
  49. </style>