1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
<div class="cell-header">
<div class="cell-header_title">{{ title }}</div>
<div>
<slot></slot>
</div>
</div>
</template>
<script>
export default {
props: ['title'],
};
</script>
<style scoped>
.cell-header {
margin: 10px 20px;
height: 30px;
display: flex;
justify-content: space-between;
border-bottom: 2px solid #f7f7f7;
}
.cell-header_title {
font-weight: bold;
font-size: 15px;
}
.cell-header_title::before {
content: "";
border-left: 5px solid #647092;
margin-right: 10px;
}
.cell-header [class^="el-icon-"] {
font-weight: bold;
cursor: pointer;
color: #95979b;
}
.cell-header [class^="el-icon-"]:hover {
color: #000;
}
.cell-header >>> .el-icon-more {
transform: rotate(90deg);
}
</style>