<template>
  <div class="componentMenu container">
    <div class="menu-com row">
      <div class="menu-title col-md-12">
        <a>器件选型</a> >
        <span v-for="item in list">
					<a><span>{{item.nameCn}}</span></a>
          <span> > </span>
				  </span>
        <span>器件详情</span>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'ComponentMenu',
    computed: {
      lists () {
        return this.$store.state.componentMenu.menu
      },
      list () {
        console.log(this.lists)
        return this.lists.data
      }
    }
  }
</script>
<style scoped>
  .componentMenu{
    width: 1190px;
    margin: 0 auto;
  }
  .menu-com{
    margin: 0;
  }
  .menu-title{
    line-height: 40px;
    font-size: 14px;
  }
  .menu-title a{
    color: #5078cb;
    font-size: 14px;
  }
  i{
    margin-right: 5px;
  }
  .menu-title{
    padding-left: 0;
  }
</style>
