ComponentMenu.vue 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <div class="componentMenu container">
  3. <div class="menu-com row">
  4. <div class="menu-title col-md-12">
  5. <nuxt-link to="/product/kind/home">器件选型</nuxt-link> >
  6. <span v-for="(item, key) in list">
  7. <nuxt-link :to="`/product/kind/${item.id}`" :key="key"><span>{{item.nameCn}}</span></nuxt-link>
  8. <span> > </span>
  9. </span>
  10. <span>器件详情</span>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'ComponentMenu',
  18. computed: {
  19. lists () {
  20. return this.$store.state.componentMenu.menu
  21. },
  22. list () {
  23. return this.lists.data
  24. }
  25. }
  26. }
  27. </script>
  28. <style scoped>
  29. .componentMenu{
  30. width: 1190px;
  31. margin: 0 auto;
  32. }
  33. .menu-com{
  34. margin: 0;
  35. }
  36. .menu-title{
  37. line-height: 40px;
  38. font-size: 14px;
  39. }
  40. .menu-title a{
  41. color: #5078cb;
  42. font-size: 14px;
  43. }
  44. i{
  45. margin-right: 5px;
  46. }
  47. .menu-title{
  48. padding-left: 0;
  49. }
  50. </style>