App.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <div
  3. id="app"
  4. :class="'mainTheme-' + this.themeName"
  5. style="width: 100%; height: 100%"
  6. v-loading="$store.state.loading"
  7. element-loading-text="拼命加载中"
  8. element-loading-spinner="el-icon-loading"
  9. >
  10. <router-view name="rally"></router-view>
  11. <el-container style="height: 100%">
  12. <el-header style="height: 60px; padding: 0 0px">
  13. <headers></headers>
  14. </el-header>
  15. <el-container class="fot">
  16. <el-aside class="son" :style="this.asidez">
  17. <asiders></asiders>
  18. </el-aside>
  19. <el-main class="sis" :style="this.mainy">
  20. <mains></mains>
  21. </el-main>
  22. </el-container>
  23. </el-container>
  24. </div>
  25. </template>
  26. <script>
  27. import { mapGetters } from "vuex";
  28. import asiders from "@layout/aside";
  29. import headers from "@layout/header";
  30. import mains from "@layout/main";
  31. export default {
  32. computed: {
  33. ...mapGetters(["asidez", "mainy", "themeName"]),
  34. },
  35. components: {
  36. asiders,
  37. headers,
  38. mains,
  39. },
  40. };
  41. </script>
  42. <style lang="scss">
  43. @import "@assets/css/base.scss";
  44. </style>
  45. <style lang="scss" scoped>
  46. @import "@assets/css/theme.scss";
  47. .fot {
  48. display: flex;
  49. flex-direction: row;
  50. flex-wrap: nowrap;
  51. width: 100%;
  52. height: 100%;
  53. }
  54. .son {
  55. display: flex;
  56. width: 10%;
  57. height: 100%;
  58. }
  59. .sis {
  60. display: flex;
  61. width: 90%;
  62. height: 100%;
  63. }
  64. </style>