<!--
 * @Author: 曹捷
 * @Date: 2020-06-02 16:16:21
 * @LastEditors: 曹捷
 * @LastEditTime: 2022-01-06 11:34:05
 * @Description: file content
--> 
<template>
  <div @click="toggleClick" style="padding: 0 15px">
    <!-- <svg-icon  icon-class="navbar" /> -->
    <span class="icon iconfont icon-navbar" :class="{ 'is-active': isActive }"></span>
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick () {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped lang="less">
.hamburger {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}

.is-active {
  transform: rotate(180deg);
  display: inline-table;
}
</style>
