<template>
  <div class="title">
    <img :src="require(`@/assets/images/title_icon.png`)" alt="" />
    <div class="name">
      <slot></slot>
    </div>
    <img class="line" :src="require(`@/assets/images/bg_line.png`)" alt="" />
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.title {
  display: flex;
  align-items: center;
  position: relative;
  padding-bottom: 10px;
  > img {
    width: 20px;
  }
  .line {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2px;
  }
  .name {
    margin-left: 10px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }
}
</style>
