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
| <template>
| <div id="app">
| <el-container class="container">
| <el-aside class="leftMenu">
| <left-menu></left-menu>
| </el-aside>
| <el-main class="contMain">
| <el-container class="contBox">
| <el-header class="header">
|
| </el-header>
| <el-main class="mainBox">
| <router-view />
| </el-main>
| </el-container>
| </el-main>
| </el-container>
| </div>
| </template>
|
| <script>
| import leftMenu from './views/menu/leftMenu.vue'
| export default {
| components: {
| leftMenu
| },
| data() {
| return {};
| },
| methods: {}
| };
| </script>
| <style>
| #app {
| width: 100vw;
| height: 100vh;
| overflow: hidden;
| }
| .container {
| width: 100%;
| height: 100%;
| position: absolute;
| }
| .leftMenu {
| width: 62px !important;
| height: 100%;
| }
| .contMain {
| width: calc(100% - 62px);
| height: 100%;
| padding: 0px !important;
| }
| .contBox {
| width: 100%;
| height: 100%;
| }
| .header {
| width: 100%;
| height: 36px !important;
| background: #63a103;
| }
| .mainBox {
| width: 100%;
| height: calc(100% - 36px) !important;
| padding: 0px !important;
| }
| </style>
|
|