component.tpl 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. white-space: nowrap;
  28. }
  29. td, th {
  30. border-bottom: 1px solid #eaeefb;
  31. padding: 10px;
  32. max-width: 250px;
  33. }
  34. th:first-child, td:first-child {
  35. padding-left: 10px;
  36. }
  37. }
  38. }
  39. }
  40. }
  41. </style>
  42. <template>
  43. <div class="page-container page-component">
  44. <el-row>
  45. <el-col :xs="24" :sm="6">
  46. <side-nav :data="navsData[lang]" :base="`/${ lang }/component`"></side-nav>
  47. </el-col>
  48. <el-col :xs="24" :sm="18">
  49. <router-view class="content"></router-view>
  50. <footer-nav></footer-nav>
  51. </el-col>
  52. </el-row>
  53. </div>
  54. </template>
  55. <script>
  56. import navsData from '../../nav.config.json';
  57. export default {
  58. data() {
  59. return {
  60. lang: this.$route.meta.lang,
  61. navsData
  62. };
  63. }
  64. };
  65. </script>