<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%;
  overflow: hidden;
  .map-content-inner {
    height: calc(100% - 30px);
    padding: 10px;
    text-align: center;
    padding-left: 30px;
  }

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