You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
938 B

3 years ago
<template>
2 years ago
<div style="padding: 0 15px; display: flex;background: #08518e" >
<img
src="../../assets/logo/svg.png"
@click="toggleClick"
:class="{ 'is-active': isActive }"
3 years ago
class="hamburger"
2 years ago
/>
<div class="nabar-title">华双视频水位数据接收平台</div>
3 years ago
</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;
2 years ago
margin-top: 18px;
width: 16px;
color: #304156;
height: 16px;
margin-left: 6px;
3 years ago
}
.hamburger.is-active {
transform: rotate(180deg);
}
2 years ago
.nabar-title {
font-size: 18px;
margin-left: 18px;
height: 100%;
line-height: 54px;
color: rgb(255, 255, 255);
font-weight: 600;
vertical-align: middle;
}
3 years ago
</style>