| | |
| | | <template>
|
| | | <div id="app">
|
| | | <home-page></home-page>
|
| | | <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 homePage from './views/homePage/index.vue'
|
| | | import leftMenu from './views/menu/leftMenu.vue'
|
| | | export default {
|
| | | components:{
|
| | | homePage
|
| | | components: {
|
| | | leftMenu
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | }
|
| | | return {};
|
| | | },
|
| | | methods: {
|
| | | }
|
| | |
|
| | | }
|
| | | methods: {}
|
| | | };
|
| | | </script>
|
| | | <style >
|
| | | <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>
|