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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
| <template>
| <div class="table_card">
| <div v-if="showTitle" class="title">
| <span style="font-weight: bold">{{ title }}</span>
| </div>
| <div>
| <slot name="tab"></slot>
| </div>
| <div v-if="showForm" class="table_card_form">
| <slot name="form"></slot>
| </div>
| <div>
| <slot name="table"></slot>
| </div>
| </div>
| </template>
| <script>
| export default {
| props: {
| title: {
| type: String,
| default: '标题'
| },
| showTitle: {
| type: Boolean,
| default: true
| },
| showForm: {
| type: Boolean,
| default: true
| }
| },
| data() {
| return {};
| }
| };
| </script>
| <style scoped>
| .table_card {
| text-align: left;
| }
|
| .title {
| position: relative;
| font-size: 18px;
| color: #333;
| font-weight: 400;
| padding-left: 10px;
| margin-left: 15px;
| }
|
| .title::before {
| position: absolute;
| left: 0;
| top: 4px;
| content: '';
| width: 4px;
| height: 18px;
| background-color: #3A7BFA;
| border-radius: 2px;
| }
|
| .table_card_form {
| display: flex;
| justify-content: space-between;
| height: 34px;
| padding: 0 15px;
| margin-bottom: 10px;
| }
|
| </style>
|
|