<template>
  <div :title="title" class="box">
    <div style="margin: 20px;">
      <slot/>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BorderFrame',
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  $themeColor: aliceblue;
  .box{
    position:relative;
    margin-top: 20px;
    border:2px solid $themeColor;
    padding: 0 10px;
  .table{
    margin: 20px 0px;
    box-sizing: border-box;
    border-color: #C3DFF4 !important;
  }
  }
  .box::before{
    content:attr(title);
    position:absolute;
    left:20px;
    color: #15428b;
    font-weight: bold;
    transform:translateY(-50%);
    -webkit-transform:translate(0,-50%);
    padding:0 10px;
    background-color:#fff;
    font-size:14px;
  }

</style>
