zhanghua
2025-04-14 829f5116884f98643ffc5b2a548a600d40c0cedb
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 id="body-wrapper">
    <!-- 侧边导航栏 -->
    <Menu />
    <el-container class="content">
      <!-- 头部 -->
      <Header />
      <!-- 内容区域 -->
      <Main />
    </el-container>
  </el-container>
</template>
 
<script>
import Main from "./components/Main";
import Menu from "./components/Menu";
import Header from "./components/Header";
export default {
  name: "layout",
  components: {
    Menu,
    Main,
    Header,
  },
};
</script>
 
<style lang="scss" scoped>
#body-wrapper {
  width: 100vw;
  height: 100vh;
}
 
.my-el-content {
  margin-top: 60px;
}
 
.content{
  display: flex;
  flex-direction: column;
  height: 100%;
}
 
.el-main {
  background-color: #fff;
  color: #333;
  text-align: center;
  line-height: 160px;
}
</style>