<template>
  <div>
    <div>
      <el-row class="tac">
        <el-col>
          <el-menu
            :default-active="index"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
          >
            <el-menu-item index="1">
              <span class="circle"><d2-icon-svg name="mail"/></span>
              <span slot="title">通讯录管理</span>
            </el-menu-item>
            <el-menu-item index="2">
              <span class="circle"><d2-icon-svg name="counter"/></span>
              <span slot="title">柜组管理</span>
            </el-menu-item>
            <el-menu-item index="3">
              <span class="circle"><d2-icon-svg name="store"/></span>
              <span slot="title">门店管理</span>
            </el-menu-item>
          </el-menu>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      index: '1'
    }
  },
  methods: {
    handleClose () {},
    handleOpen () {}
  }
}
</script>

<style scoped>
.tac {
  width:248px;
  height: 100%;
}
.tac >>> .el-menu {
  border-right: none;
}
.circle {
  display: inline-block;
  width: 24px;
  height: 24px;
  background:rgba(255,255,255,1);
  box-shadow: 0px 1px 2px 0px rgba(78,89,199,1);
  border-radius: 50%;
  line-height: 24px;
  text-align: center;
  margin-right: 12px;
}
.theme-d2 .el-menu-item svg, .theme-d2 .el-submenu__title svg {
  margin-right: 0;
}

</style>
