guide.vue 1.4 KB

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