guide.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <style>
  2. .el-col {
  3. box-sizing: border-box;
  4. }
  5. .page-guide {
  6. padding: 55px 0 95px;
  7. .content {
  8. padding-left: 25px;
  9. border-left: 1px solid #eaeefa;
  10. margin-left: -1px;
  11. h3 {
  12. font-size: 22px;
  13. font-weight: normal;
  14. margin: 0 0 30px;
  15. color: #1f2d3d;
  16. }
  17. p {
  18. font-size: 14px;
  19. color: #5e6d82;
  20. }
  21. ul {
  22. margin-bottom: 50px;
  23. padding-left: 0;
  24. }
  25. li {
  26. font-size: 14px;
  27. margin-bottom: 10px;
  28. color: #99a9bf;
  29. list-style: none;
  30. &:before {
  31. content: '';
  32. display: inline-block;
  33. width: 4px;
  34. height: @width;
  35. border-radius: 50%;
  36. vertical-align: middle;
  37. background-color: #5e6d82;
  38. margin-right: 5px;
  39. }
  40. strong {
  41. color: #5e6d82;
  42. font-weight: 400;
  43. }
  44. }
  45. }
  46. }
  47. </style>
  48. <template>
  49. <div class="page-container page-guide">
  50. <el-row>
  51. <el-col :span="5">
  52. <side-nav :data="navsData" base="/guide"></side-nav>
  53. </el-col>
  54. <el-col :span="19">
  55. <router-view class="content"></router-view>
  56. </el-col>
  57. </el-row>
  58. </div>
  59. </template>
  60. <script>
  61. export default {
  62. data() {
  63. return {
  64. navsData: [
  65. {
  66. path: '/design',
  67. name: '设计原则'
  68. },
  69. {
  70. path: '/nav',
  71. name: '导航'
  72. }
  73. ]
  74. };
  75. }
  76. };
  77. </script>