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
| <template>
| <div class="headerBox">
| <div class="headerSwitch">
| <el-switch
| v-model="headSwitch"
| active-color="#FFFFFF"
| inactive-color="#FFFFFF"
| >
| </el-switch>
| </div>
| <div class="headerContent">
| <div>
| <span>{{ headerLabel }}</span>
| <img class="haerImg" src="../../assets/img/header/normal_u42.svg" alt="">
| </div>
| </div>
| </div>
| </template>
|
| <script>
|
| export default {
| data() {
| return {
| headSwitch: false,
| headerLabel: "已连接外网"
| };
| }
| };
| </script>
|
| <style scoped>
| .headerBox {
| width: 100%;
| height: 100%;
| background: #63a103;
| display: flex;
| }
| .headerSwitch {
| padding-left: 16px;
| display: flex;
| align-items: center;
| }
| .headerContent {
| flex: 1;
| font-family: "微软雅黑", sans-serif;
| color: #ffffff;
| display: flex;
| align-items: center;
| justify-content: center;
|
| }
| .haerImg{
| width: 15px;
| height: 17px;
| margin-left: 10px;
| }
|
| /deep/.el-switch__core:after {
| background-color: #63a103 !important;
| }
| </style>
|
|