CellHeader.vue 878 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
  content: "";
潘际乾 committed
30
  border-left: 5px solid var(--themecolor);
31
  margin-right: 10px;
潘际乾 committed
32
  border-radius: 2.5px;
33
}
潘际乾 committed
34
.cell-header [class^="el-icon-"] {
35 36
  font-weight: bold;
  cursor: pointer;
潘际乾 committed
37 38 39 40
  color: var(--themecolor);
  /* color: #95979b; */
}
.cell-header .el-icon-more {
41 42
  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>