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
<template>
<div class="menu-layout">
<Header></Header>
<div class="container">
<Menu></Menu>
<Loading />
<div class="content">
<router-view />
</div>
</div>
</div>
</template>
<script>
import Header from "./components/Header.vue";
import Menu from "./components/menu";
import Loading from "./components/Loading.vue";
export default {
components: {
Header,
Menu,
Loading
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style>
.icon-class.arrow{
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
}
</style>
<style lang="less" scoped>
.menu-layout {
background-color: #f8fafb;
font-family: "Helvetica" "Microsoft YaHei" "微软雅黑";
.container {
display: flex;
position: relative;
.pt(68);
// min-height: calc(100vh - 50px);
.content {
position: relative;
flex: 1;
.mg-l(242);
.pa(14, 40, 0, 40);
min-height: calc(100vh - 68px);
overflow-x: hidden;
}
}
.menu {
position: fixed;
.w(242);
height: calc(100vh - 68px);
overflow: auto;
background-color: #fff;
li{
position: relative;
}
}
}
</style>