component.vue 990 B

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