<template>
  <div id="fenlei">
    <el-col class="swfl"> <el-image style="width:22px;height:22px;margin:0 5px -5px 0;" :src="src"></el-image><span>商务分类</span> </el-col>
    <el-col>
      <el-menu
        default-active="2"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
        background-color=" #ffffff"
        text-color="#215299"
        active-text-color="#215299"
      >
        <el-menu-item-group>
          <el-menu-item index="1-1" class="fenlei_title">高校院所</el-menu-item>
          <el-menu-item index="1-2" class="fenlei_title">科研院所</el-menu-item>
          <el-menu-item index="1-3" class="fenlei_title">科技企业</el-menu-item>
          <el-menu-item index="1-4" class="fenlei_title">机构团体</el-menu-item>
          <el-menu-item index="1-5" class="fenlei_title">研发服务</el-menu-item>
          <el-menu-item index="1-6" class="fenlei_title">技术成果</el-menu-item>
          <el-menu-item index="1-7" class="fenlei_title">创新产品</el-menu-item>
          <el-menu-item index="1-8" class="fenlei_title">咨询服务</el-menu-item>
          <el-menu-item index="1-9" class="fenlei_titlelast">创新人才</el-menu-item>
        </el-menu-item-group>
      </el-menu>
    </el-col>
  </div>
</template>

<script>
export default {
  name: 'fenlei',
  props: {},
  components: {},
  data: () => ({
    src: require('@/assets/swfl.png'),
  }),
  created() {},
  computed: {},
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
  },
};
</script>

<style lang="less" scoped>
.swfl {
  height: 60px;
  width: 240px;
  line-height: 60px;
  background-color: #22529a;
  text-align: center;
}
.swfl span {
  font-size: 22px;
  color: #ffffff;
}
// .ziti {
//   color: #ffffff;
//   margin: 0 0 0 5px;
//   // line-height: 50px;
//   font-size: 18px;
// }
// .image {
//   line-height: 50px;
// }
.fenlei_title {
  height: 60px;
  width: 240px;
  // background-color: salmon;
  text-align: center;
  line-height: 50px;
  border-bottom: 1px dashed;
  font-size: 22px;
}
.fenlei_titlelast {
  height: 60px;
  width: 240px;
  // background-color: salmon;
  text-align: center;
  line-height: 50px;
  font-size: 22px;
}
/deep/.el-menu-item-group__title {
  padding: 0 0 0 0;
  line-height: normal;
  font-size: 12px;
  color: #ffffff;
}
</style>
