<template>
  <div class="map-content-item">
    <div class="map-content-title">{{ title }}</div>
    <div class="map-content-inner">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
  },
};
</script>

<style lang="scss" scoped>
.map-content-item {
  width: 100%;
  height: 34%;
  overflow: hidden;
  .map-content-inner {
    height: 100%;
    padding: 10px;
    text-align: center;
    padding-left: 30px;
  }

  .map-content-title {
    width: 100%;
    height: 40px;
    background: url("../../assets/map/title.png") no-repeat;
    background-size: 100% 100%;
    font-size: 19px;
    color: #fff;
    padding-left: 64px;
    font-weight: 500;
  }
}
</style>