BasicLayout.vue
906 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
47
48
49
50
<template>
<el-container>
<el-header>
<global-header />
</el-header>
<el-main class="content-container">
<div class="condition">condition</div>
<div class="content">
<router-view />
</div>
</el-main>
</el-container>
</template>
<script>
import GlobalHeader from './components/GlobalHeader'
export default {
name: 'BasicLayout',
components: { GlobalHeader }
}
</script>
<style lang="scss">
@import '~@/styles/variables.scss';
.content-container {
padding: 0;
}
.content {
margin: $headerHeight 165px 0;
background-color: #e9eef3;
color: #333;
text-align: center;
height: 100vh;
line-height: 160px;
box-shadow: 0 0 3px 0 rgba(0, 0, 0, 1);
transition: all 0.3s linear;
}
.condition {
width: 100%;
position: fixed;
top: $headerHeight;
height: 60px;
line-height: 60px;
background: #f0d;
text-align: center;
}
</style>