index.vue 754 Bytes
<template>
  <el-row class="table-header">
    <el-col :span="leftSpan">
      <span v-text="title"></span>
      <slot name="left"></slot>
    </el-col>
    <el-col :span="24 - leftSpan">
      <slot></slot>
    </el-col>
  </el-row>
</template>

<script>
export default {
  name: 'd2-teble-header',
  props: {
    title: {
      type: String,
      required: false,
      default: ''
    },
    leftSpan: {
      type: Number,
      required: false,
      default: 12
    }
  }
}
</script>

<style>
.table-header {
  font-size: 14px;
}
.table-header .el-col-12 {
  height: 100%;
}
.table-header .grid {
  margin-right: 20px;
}
.count-txt {
  font-weight: 700;
  color: #2a58ad;
  margin: 0 2px;
}
</style>