LeftNav.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div id="LeftNav" class="row">
  3. <!-- 左导航组件 -->
  4. <div id="left" class="col-sm-12 col-xs-12 hidden-lg hidden-md">
  5. <ul class="left-container wow bounceInLeft">
  6. <p>{{ title }}</p>
  7. <li v-for="(item,index) in list" :key="index">
  8. <router-link :to=item.path>{{ item.name }}</router-link>
  9. </li>
  10. </ul>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. import {WOW} from 'wowjs'
  16. export default {
  17. name: "LeftNav",
  18. props: ['list', 'title'],
  19. mounted() {
  20. var wow = new WOW();
  21. wow.init();
  22. },
  23. };
  24. </script>
  25. <style scoped>
  26. #left {
  27. margin: 24px 0;
  28. }
  29. .left-container {
  30. width: 60%;
  31. margin: 0 auto;
  32. border: 1px solid #474747;
  33. border-radius: 5px;
  34. }
  35. .left-container > p {
  36. text-align: center;
  37. line-height: 36px;
  38. padding: 0;
  39. margin: 0;
  40. background: #474747;
  41. color: #fff;
  42. font-size: 13px;
  43. font-weight: bold;
  44. }
  45. .left-container > li {
  46. font-size: 12px;
  47. text-align: center;
  48. height: 36px;
  49. line-height: 36px;
  50. margin: 0;
  51. border-top: 1px solid #f5f5f5;
  52. }
  53. .left-container > li > a {
  54. text-decoration: none;
  55. }
  56. .left-container > li:hover {
  57. background: #f5f5f5;
  58. text-decoration: underline;
  59. text-decoration-color: #1e73be;
  60. }
  61. </style>