<template>
  <div id="listLeft">
    <el-row>
      <el-col :span="24" class="listLeft">
        <el-menu default-active="1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose">
          <el-menu-item index="1" :style="`color:${Color}`">
            <span slot="title">就业动态</span>
          </el-menu-item>
          <el-menu-item index="2" :style="`color:${Color}`">
            <span slot="title">学校动态</span>
          </el-menu-item>
          <el-menu-item index="3" :style="`color:${Color}`">
            <span slot="title">文化动态</span>
          </el-menu-item>
          <el-menu-item index="4" :style="`color:${Color}`">
            <span slot="title">招生动态</span>
          </el-menu-item>
          <el-menu-item index="5" :style="`color:${Color}`">
            <span slot="title">考试动态</span>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'listLeft',
  props: {
    Color: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
  },
};
</script>

<style lang="less" scoped>
/deep/.el-menu {
  border-right: none;
}
/deep/.el-menu-item {
  font-size: 24px;
  height: 60px;
  line-height: 60px;
  border-right: 2px solid transparent;
}
/deep/.el-menu-item.is-active {
  color: #415285;
  background: #b9c1d7;
  border-left: 5px solid #0457c7;
}
</style>
