<template>
  <div style="padding: 0 0 0 15px;" @click="toggleClick">
    <i :class="`${isActive ? 'el-icon-s-fold' : 'el-icon-s-unfold'}`" class="hamburger"/>
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    },
    toggleClick: {
      type: Function,
      default: null
    }
  }
}
</script>

<style lang="scss" scoped>
.hamburger {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  //动画
  transition: all .3s;
  &:hover {
    //放大动画
    transform: scale(1.2);
  }
}
</style>
