component.vue 1.2 KB

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