第一次上传
This commit is contained in:
36
src/components/Hamburger/index.vue
Normal file
36
src/components/Hamburger/index.vue
Normal file
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<!-- 导航标签 -->
|
||||
<div style="padding: 0 15px;" @click="toggleClick">
|
||||
<svg-icon class="hamburger" :class="{'is-active':isActive}" icon-class="iconzhedie" />
|
||||
</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 !important;
|
||||
width: 18px !important;
|
||||
height: 18px !important;
|
||||
}
|
||||
|
||||
.hamburger.is-active {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user