component.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <style>
  2. .page-component {
  3. padding-bottom: 95px;
  4. }
  5. .el-col {
  6. box-sizing: border-box;
  7. }
  8. .page-component {
  9. .content {
  10. margin-left: -1px;
  11. > {
  12. h3 {
  13. margin: 45px 0 15px;
  14. }
  15. table {
  16. width: 100%;
  17. background-color: #fff;
  18. color: #5e6d82;
  19. font-size: 14px;
  20. margin-bottom: 45px;
  21. strong {
  22. font-weight: normal;
  23. }
  24. th {
  25. text-align: left;
  26. }
  27. td, th {
  28. border-bottom: 1px solid #eaeefb;
  29. padding: 10px 0;
  30. }
  31. }
  32. }
  33. }
  34. }
  35. </style>
  36. <template>
  37. <div class="page-container page-component">
  38. <el-row>
  39. <el-col :span="6">
  40. <side-nav :data="navsData" base="/component"></side-nav>
  41. </el-col>
  42. <el-col :span="18">
  43. <router-view class="content"></router-view>
  44. <footer-nav></footer-nav>
  45. </el-col>
  46. </el-row>
  47. </div>
  48. </template>
  49. <script>
  50. import { navs } from '../route.config';
  51. export default {
  52. data() {
  53. return {
  54. navsData: navs
  55. };
  56. }
  57. };
  58. </script>