component.tpl 1.4 KB

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