index.vue
1.57 KB
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
72
73
74
75
<template>
<el-container class="base-container">
<el-aside class="base-container-aside">
<SideMenu></SideMenu>
</el-aside>
<el-container class="base-container-right">
<el-header>
<NavMenu></NavMenu>
</el-header>
<SubNav></SubNav>
<!-- <Tabs></Tabs> -->
<el-main v-loading="app.isLoading" element-loading-spinner="el-icon-loading">
<GLScroll class="el-main-scroll">
<slot></slot>
</GLScroll>
</el-main>
</el-container>
</el-container>
</template>
<script>
import './subscriber'
import './components'
import { mapGetters } from 'vuex'
export default {
name: 'Layout',
computed: {
...mapGetters(['app'])
}
}
</script>
<style lang="scss" scoped>
@import '~@/assets/style/variables.scss';
.base-container {
height: 100%;
display: flex;
&-aside {
flex: 0 0 $menu-width;
text-align: left;
}
&-right {
flex: 1;
height: 100%;
// padding: 0 20px 20px 40px;
/deep/.el-loading-spinner {
i,
.el-loading-text {
color: $main-color;
font-size: 26px;
}
}
.el-header {
padding: 0;
color: #333;
text-align: center;
}
.el-main {
height: calc(100% - 80px) !important;
-ms-overflow-style: none;
scrollbar-width: none;
padding: 0;
// background-color: #fff;
&::-webkit-scrollbar {
display: none;
}
&-scroll {
height: 100%;
/deep/.el-scrollbar__thumb {
background-color: rgba(144, 147, 153, 0.1);
}
}
}
}
}
</style>