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
| <template>
| <div class="tab_head">
| <slot name="left"></slot>
| <div class="tab_title">{{ title }}</div>
| <slot></slot>
| </div>
| </template>
|
| <script>
| export default {
| name: "tabHead",
| props: {
| title: {
| type: String,
| default: ""
| }
| },
| data() {
| return {};
| }
| };
| </script>
|
| <style lang="less" scoped>
| .tab_head {
| font-size: 10vw;
| padding: 0.2em 0.525em;
| background: #13161e;
| display: flex;
| align-items: center;
| justify-content: space-between;
| position: -webkit-sticky;
| position: sticky;
| top: 0;
| left: 0;
| z-index: 999;
| height: 1.5em;
|
| .tab_title {
| font-size: 0.55em;
| font-weight: 700;
| color: #ccc;
| }
| }
| </style>
|
|