MainFrame.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <div class="mainFrame">
  3. <el-container>
  4. <el-header>
  5. <navbar></navbar>
  6. </el-header>
  7. <el-container>
  8. <el-aside>
  9. <sidebar></sidebar>
  10. </el-aside>
  11. <el-container>
  12. <el-main>
  13. <router-view></router-view>
  14. </el-main>
  15. </el-container>
  16. </el-container>
  17. </el-container>
  18. </div>
  19. </template>
  20. <script>
  21. import navbar from '@/layout/Navbar'
  22. import sidebar from '@/layout/sidebar/Sidebar'
  23. export default {
  24. components: { navbar, sidebar },
  25. data() {
  26. return {}
  27. },
  28. }
  29. </script>
  30. <style lang="less" scoped>
  31. .mainFrame {
  32. width: 100%;
  33. height: 100%;
  34. }
  35. .el-container {
  36. height: 100%;
  37. overflow: hidden;
  38. }
  39. .el-header {
  40. left: 0px;
  41. top: 0px;
  42. height: 64px !important;
  43. line-height: 20px;
  44. background-image: url('@/assets/images/background@3x.png');
  45. text-align: center;
  46. box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.15);
  47. }
  48. .el-aside {
  49. left: 0px;
  50. top: 64px;
  51. color: rgba(16, 16, 16, 1);
  52. line-height: 20px;
  53. width: 200px !important;
  54. background-color: #104986;
  55. color: rgba(16, 16, 16, 1);
  56. font-size: 14px;
  57. text-align: center;
  58. overflow-x: hidden;
  59. }
  60. .el-main {
  61. background-color: #E9EEF3;
  62. color: #333;
  63. height: 100%;
  64. }
  65. </style>