This commit is contained in:
GGJ
2025-01-09 19:02:44 +08:00
commit 92e7a7a5eb
2943 changed files with 1152283 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<template>
<div id="hamburger-container" style="padding: 0 18px;" @click="toggleClick">
<svg-icon icon-class="hamburger" class="hamburger" :class="{'is-active':isActive}" />
</div>
</template>
<script>
export default {
name: 'hamburger',
props: {
isActive: {
type: Boolean,
default: false
}
},
methods: {
toggleClick() {
this.$emit('toggleClick')
}
}
}
</script>
<style lang='less' scoped>
.hamburger {
display: inline-block;
width: 20px !important;
height: 20px !important;
vertical-align: middle !important;
}
.hamburger.is-active {
transform: rotate(180deg);
}
</style>