component.vue 1.1 KB

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