<template>
  <div class="layout-register">
    <div class="layout-register-header">
      <span class="font-size-18">{{ headerTitle }}</span>
      <span class="border"></span>
    </div>
    <div class="layout-register-body">
      <div class="layout-register-left">
        <slot name="left"></slot>
      </div>
      <div class="layout-register-right">
        <slot name="right"></slot>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'layout-register',
  props: {
    headerTitle: {
      type: String,
      default: '新用户注册'
    }
  }
}
</script>

<style lang="scss" scoped>
.layout-register {
  .layout-register-header {
    padding: 20px 0px;
    color: #E27F4D;
    .border {
      width: 100%;
      height: 2px;
      display: inline-block;
      background: #E27F4D;
    }
  }
  .layout-register-body {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
    .layout-register-left {
      width: 190px;
      overflow: hidden;
      background: #fff;
      border-radius: 5px;
      min-height: 480px;
    }
    .layout-register-right {
      flex: 1;
      margin-left: 20px;
      background: #fff;
      border-radius: 5px;
      min-height: 600px;
    }
  }
}
</style>
