component.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <style>
  2. .page-component {
  3. padding-bottom: 95px;
  4. }
  5. .page-component {
  6. .content {
  7. margin-left: -1px;
  8. > {
  9. h3 {
  10. margin: 45px 0 15px;
  11. }
  12. table {
  13. border-collapse: collapse;
  14. width: 100%;
  15. background-color: #fff;
  16. color: #5e6d82;
  17. font-size: 14px;
  18. margin-bottom: 45px;
  19. strong {
  20. font-weight: normal;
  21. }
  22. th {
  23. text-align: left;
  24. }
  25. td, th {
  26. border-bottom: 1px solid #eaeefb;
  27. padding: 10px 0;
  28. }
  29. th {
  30. border-top: 1px solid #eaeefb;
  31. background-color: #EFF2F7;
  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>