<!--
/* @name    标题组件
 * @authors pen (you@example.org)
 * @date    2022-06-30
 * @version 1.0.0
 */
 -->
 <template>
  <div class="h-title">
    <div class="header_title">
      <h1 class="header_page_title">{{ pageTitle }}</h1>
      <slot name="titleSlot"></slot>
    </div>
    <div>
      <slot name="titleRightSlot"></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: 'title-view',
  props: {
    pageTitle: String //标题
  }
}
</script>
<style scoped lang="less">
.h-title {
  display: flex;
  min-height: 32px;
}
.header_title {
  flex: 1;
  display: flex;
  align-items: center;
  .header_page_title {
    font-size: 18px;
    margin-left: 14px;
    position: relative;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.85);
    letter-spacing: 1px;
  }
  .header_page_title::before {
    display: block;
    content: '';
    width: 4px;
    height: 20px;
    background: #fc6510;
    border-radius: 2px;
    position: absolute;
    left: -14px;
    top: 3px;
  }
}
</style>
