<template>
  <!--页头-->
  <div class="block-header">
    <div class="b-header-inner">
      <h3>{{ title }}</h3>
    </div>

    <div class="b-header-extra">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name:"BlockHeader",
  props: ['title']
}
</script>

<style scoped>

.block-header {
  display: flex;
  justify-content: flex-start;
  align-content: center;
  padding: 10px 12px;
  min-height: 40px;
  box-sizing: border-box;
  margin-bottom: 16px;
  background: #f7f8fa;
}

.b-header-inner {
  flex:1;
  display: flex;
  align-items: center;
}
.b-header-inner::before {
  content: "";
  background-color: #155bd4;
  width: 3px;
  height: 14px;
  margin-right: 8px;
}

.b-header-inner h3 {
  font-size: 14px;
  line-height: 20px;
  color: #323233;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.b-header-extra{
  flex:1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

</style>
