index.vue
754 Bytes
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
45
46
<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>