Newer
Older
CallCenterFront / src / components / frame / borderFrame.vue
StephanieGitHub on 25 Apr 2020 824 bytes MOD: 边框组件
<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>