component.vue 1.3 KB

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