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