navBar.vue
1.21 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<template>
<div class="nav-bar-wrapper" separator="/">
<Hamburger
class="hamburger"
:toggleClick="toggleSlideBar"
:isActive="app.slideBar.opened"
></Hamburger>
<Levelbar class="levelbar"></Levelbar>
<TabsView class="tabsview"></TabsView>
<Account></Account>
</div>
</template>
<script>
import { mapState } from "vuex";
import Hamburger from "components/hamburger";
import Levelbar from "./levelbar";
import TabsView from "./tabsView";
import Account from "./account";
export default {
components: {
Hamburger,
Levelbar,
TabsView,
Account,
},
methods: {
toggleSlideBar() {
this.$store.dispatch("toggleSideBar");
},
},
computed: {
...mapState(["app"]),
},
};
</script>
<style lang="less" scoped>
.nav-bar-wrapper {
height: 50px;
// line-height: 50px;
background: #eef1f6;
> * {
display: inline-block;
vertical-align: middle;
}
.hamburger {
line-height: 58px;
width: 40px;
height: 50px;
padding: 0 10px;
}
.levelbar {
font-size: 14px;
line-height: 50px;
margin-left: 10px;
}
.tabsview {
margin-left: 10px;
}
}
</style>