-
Notifications
You must be signed in to change notification settings - Fork 354
/
Copy pathSampleLayout.vue
executable file
·41 lines (38 loc) · 953 Bytes
/
SampleLayout.vue
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
<template>
<div class="wrapper">
<side-bar>
<template slot="links">
<sidebar-link to="/deepsearch" :name="$t('sidebar.dashboard')" icon="tim-icons icon-chart-pie-36"/>
</template>
</side-bar>
<div class="main-panel">
<top-navbar></top-navbar>
<dashboard-content @click.native="toggleSidebar">
</dashboard-content>
<content-footer></content-footer>
</div>
</div>
</template>
<style lang="scss">
</style>
<script>
import TopNavbar from "./SampleNavbar.vue";
import ContentFooter from "./SampleFooter.vue";
import DashboardContent from "./Content.vue";
import MobileMenu from "./MobileMenu";
export default {
components: {
TopNavbar,
ContentFooter,
DashboardContent,
MobileMenu
},
methods: {
toggleSidebar() {
if (this.$sidebar.showSidebar) {
this.$sidebar.displaySidebar(false);
}
}
}
};
</script>