36 lines
626 B
Vue
36 lines
626 B
Vue
<template>
|
|
<div style="padding: 5px 15px 5px 32px;" @click="toggleClick">
|
|
<svg-icon style="width: 24px; height: 24px" class="item-icon hamburger" :class="{'is-active':isActive}" icon-class="hamburgerBtn" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Hamburger',
|
|
props: {
|
|
isActive: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
},
|
|
methods: {
|
|
toggleClick() {
|
|
this.$emit('toggleClick')
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.hamburger {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.hamburger.is-active {
|
|
transform: rotate(180deg);
|
|
}
|
|
</style>
|