<template>
  <div id="box">
    <div class="box-title">
      <dv-decoration-5 class="header-center-decoration" />
      <div class="center-title">{{ this.title }}</div>
    </div>
    <slot class="content" name="default"></slot>
  </div>
</template>

<script>
export default {
  name: "BorderItem",
  props: {
    title: {
      type: String,
      default: "",
    },
  },

  data() {
    return {};
  },
};
</script>

<style lang="scss">
#box {
  width: 100%;
  height: 100%;
  .box-title {
    height: 20%;
    display: flex;
    flex-direction: column;
    .header-center-decoration {
      width: 95%;
      height: 70px;
    }
    .center-title {
      position: absolute;
      font-size: 12px;
      font-weight: bold;
      left: 50%;
      top: 14px;
      transform: translateX(-50%);
    }

  }
  .content{
    height: 100%;
  }
  .aa {
    display: flex;
  }
}
</style>
