<template>
  <div class="sideMenu vertical-scrollbar">
    <!-- <el-scrollbar wrap-class="vertical-scrollbar"> -->
    <!-- <simplebar style="height:100%"> -->
    <el-menu
      mode="vertical"
      :unique-opened="true"
      :show-timeout="200"
      :default-active="$route.path"
      :collapse="isCollapse"
      text-color="#fff"
      active-text-color="#fff"
    >
      <sidebar-item :routes="permission_routers" />
    </el-menu>
    <!-- </simplebar> -->
    <!-- </el-scrollbar> -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import SidebarItem from './SidebarItem'
export default {
  components: { SidebarItem },
  computed: {
    ...mapGetters([
      'permission_routers',
      'sidebar',
      'appStatus'
    ]),
    isCollapse () {
      return !this.sidebar.opened
    }
  }
}
</script>

<style lang="scss">

</style>
