navbar.vue
612 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
<div class="wrap display-flex-between">
<div class="left">
<slot name="left"></slot>
</div>
<div class="center">
<slot name="center"></slot>
</div>
<div class="right">
<slot name="right"></slot>
</div>
</div>
</template>
<script>
export default {
name: 'Nav'
}
</script>
<style scoped lang="scss">
.wrap {
width: 100%;
height: 0.88rem;
padding: 0.19rem 0.32rem;
box-sizing: border-box;
}
.center{flex: 1;}
.left,.right{
width: 1.6rem;
height: auto;
}
.right{
display: flex;
align-items: center;
justify-content: flex-end;
}
</style>