<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="1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" text-color="#215299" active-text-color="#215299">
        <el-menu-item index="1"><span slot="title">综合政策指导</span></el-menu-item>
        <el-menu-item index="2"><span slot="title">科技成果转化</span></el-menu-item>
        <el-menu-item index="3"><span slot="title">科技人才</span></el-menu-item>
        <el-menu-item index="4"><span slot="title">知识产权</span></el-menu-item>
        <el-menu-item index="5"><span slot="title">税收与金融</span></el-menu-item>
        <el-menu-item index="6"><span slot="title">创新平台园区</span></el-menu-item>
        <el-menu-item index="7"><span slot="title">政策解读</span></el-menu-item>
        <el-menu-item index="8"><span slot="title">政策书籍</span></el-menu-item>
        <el-menu-item index="9"><span slot="title">政策报告</span></el-menu-item>
        <el-menu-item index="10"><span slot="title">政策卡片</span></el-menu-item>
      </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;
}
/deep/.el-menu-item {
  height: 60px;
  text-align: center;
  line-height: 60px;
  border-bottom: 1px dashed;
  font-size: 22px;
}
/deep/.el-menu-item:last-child {
  border-bottom: none;
}
</style>
