component.vue 963 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. strong {
  18. font-weight: normal;
  19. }
  20. th {
  21. text-align: left;
  22. }
  23. td, th {
  24. border-bottom: 1px solid #eaeefb;
  25. padding: 10px 0;
  26. }
  27. }
  28. }
  29. </style>
  30. <template>
  31. <div class="page-container page-component">
  32. <el-row :gutter="25">
  33. <el-col :span="6">
  34. <side-nav :data="navsData" base="/component"></side-nav>
  35. </el-col>
  36. <el-col :span="18">
  37. <router-view class="content"></router-view>
  38. </el-col>
  39. </el-row>
  40. </div>
  41. </template>
  42. <script>
  43. import { navs } from '../route.config';
  44. export default {
  45. data() {
  46. return {
  47. navsData: navs
  48. };
  49. }
  50. };
  51. </script>