App.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <div id="app">
  3. <header>
  4. <heads class="headS" :style="{height: $route.fullPath === '/' ? '.625rem' : ''}"></heads>
  5. </header>
  6. <div class="viewContent">
  7. <keep-alive>
  8. <router-view></router-view>
  9. </keep-alive>
  10. </div>
  11. <footer class="footS">
  12. <foot></foot>
  13. </footer>
  14. </div>
  15. </template>
  16. <script>
  17. import foot from "@v/foot";
  18. import heads from "@v/head";
  19. export default {
  20. components: { foot, heads },
  21. name: "App",
  22. data() {
  23. return {};
  24. },
  25. mounted() {},
  26. methods() {},
  27. };
  28. </script>
  29. <style lang='scss'>
  30. #app {
  31. width: 100%;
  32. height: 100%;
  33. background: url("./assets/img/home/home_bg.jpg") no-repeat;
  34. background-size: 100% 100%;
  35. display: flex;
  36. flex-direction: column;
  37. // min-width: 23.75rem;
  38. // min-height: 10rem;
  39. }
  40. </style>
  41. <style scoped lang='scss'>
  42. #app {
  43. .headS {
  44. height: 1.0625rem;
  45. }
  46. .viewContent {
  47. flex: 1;
  48. padding: 0 0.25rem;
  49. box-sizing: border-box;
  50. overflow: hidden;
  51. }
  52. .footS {
  53. height: 1.0625rem;
  54. padding: 0 0.4rem;
  55. box-sizing: border-box;
  56. width: 100%;
  57. }
  58. }
  59. @media screen and (min-width:1940px) {
  60. ::v-deep .el-table .is-leaf{
  61. line-height:0.25rem !important;
  62. font-size: 0.12rem;
  63. }
  64. ::v-deep .el-table .cell {
  65. line-height:0.25rem !important;
  66. font-size: 0.12rem;
  67. }
  68. ::v-deep .el-input__icon{
  69. width:auto;
  70. }
  71. ::v-deep h4{
  72. font-size:.12rem !important;
  73. }
  74. }
  75. </style>