<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: 35%;
  overflow: hidden;
  padding-left: 30px;
  .map-content-inner {
    height: 100%;
    padding: 10px;
  }

  .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>