<template>
  <div class="divider">
    <div class="content">
      <div class="title">
        <div class="ele-bg-primary"></div>
        <span :style="{ 'font-size': size }">{{ title }}</span>
      </div>
      <div class="right"><slot></slot></div>
    </div>
    <div class="ele-bg-primary" style="width: 100%; height: 2px"></div>
  </div>
</template>

<script>
  export default {
    props: {
      title: {
        typeof: String,
        default: '信息'
      },
      size: {
        typeof: String,
        default: '20px'
      }
    }
  };
</script>
<style lang="scss" scoped>
  .divider {
    margin-bottom: 20px;
    .content {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .title {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      div {
        width: 8px;
        height: 20px;
        margin-right: 10px;
      }
      span {
        font-size: 20px;
      }
    }
  }
</style>
