CellHeader.vue 819 Bytes
Newer Older
1
<template>
潘际乾 committed
2 3
  <div class="cell-header">
    <div class="cell-header_title">{{ title }}</div>
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
    <div>
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true,
    },
  },
};
</script>

<style scoped>
潘际乾 committed
22
.cell-header {
23 24 25 26 27 28
  margin: 10px 20px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #f7f7f7;
}
潘际乾 committed
29
.cell-header_title {
30 31 32
  font-weight: bold;
  font-size: 15px;
}
潘际乾 committed
33
.cell-header_title::before {
34 35 36 37
  content: "";
  border-left: 5px solid #647092;
  margin-right: 10px;
}
潘际乾 committed
38
.cell-header [class^="el-icon-"] {
39 40 41 42
  font-weight: bold;
  cursor: pointer;
  color: #95979b;
}
潘际乾 committed
43
.cell-header [class^="el-icon-"]:hover {
44 45
  color: #000;
}
潘际乾 committed
46
.cell-header >>> .el-icon-more {
47 48 49
  transform: rotate(90deg);
}
</style>