CellHeader.vue 761 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
    <div>
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
潘际乾 committed
12
  props: ['title'],
13 14 15 16
};
</script>

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