xxxxxxxxxx
1
<template>
2
<MDBSideNav
3
v-model="sidenavMDB"
4
id="sidenavMDB"
5
contentSelector="#page-content"
6
:modeBreakpoint="1400"
7
:closeOnEsc="true"
8
:backdrop="false">
9
<div class="logo d-flex justify-content-center py-2">
10
<img id="logo" src="~/assets/logo.svg" alt="Logo" draggable="false" height="50" />
11
</div>
12
13
<MDBSideNavMenu scroll-container filter>
14
<template v-for="navL1 in navigation">
15
<MDBSideNavItem v-if="navL1.hasSubpages == '0'" class="l-1">
16
<MDBSideNavLink :href="navL1.link" v-if="navL1.doktype==3">
17
<img :src="navL1.icon[0].publicUrl" width="25" height="25" v-if="navL1.icon[0]" class="fa-fw me-3"/>
18
{{ navL1.title }}
19
</MDBSideNavLink>
20
<MDBSideNavLink :to="navL1.link" v-else class="l-1">
21
<img :src="navL1.icon[0].publicUrl" width="25" height="25" v-if="navL1.icon[0]" class="fa-fw me-3"/>
22
{{ navL1.title }}
23
</MDBSideNavLink>
24
</MDBSideNavItem>
25
<MDBSideNavItem collapse :icon="navL1.icon[0].publicUrl" :title="navL1.title" v-if="navL1.hasSubpages == '1'" class="l-1">
26
<template v-for="navL2 in navL1.children">
27
<MDBSideNavItem v-if="navL2.hasSubpages == '0'" class="l-2">
28
<MDBSideNavLink :href="navL2.link" v-if="navL2.doktype==3">
29
<span>{{ navL2.title }}</span>
30
</MDBSideNavLink>
31
<MDBSideNavLink :to="navL2.link" v-else>
32
<span>{{ navL2.title }}</span>
33
</MDBSideNavLink>
34
</MDBSideNavItem>
35
<MDBSideNavItem collapse :title="navL2.title" class="l-2" v-if="navL2.hasSubpages == '1'">
36
<template v-for="navL3 in navL2.children">
37
<MDBSideNavItem v-if="navL3.hasSubpages == '0'" class="l-3">
38
<MDBSideNavLink :href="navL3.link" v-if="navL3.doktype==3">
39
<span>{{ navL3.title }}</span>
40
</MDBSideNavLink>
41
<MDBSideNavLink :to="navL3.link" v-else>
42
<span>{{ navL3.title }}</span>
43
</MDBSideNavLink>
44
</MDBSideNavItem>
45
<MDBSideNavItem collapse :title="navL3.title" v-if="navL3.hasSubpages == '1'" class="l-3">
46
<template v-for="navL4 in navL3.children">
47
<MDBSideNavItem v-if="navL4.hasSubpages == '0'" class="l-4">
48
<MDBSideNavLink :href="navL4.link" v-if="navL4.doktype==3">
49
<span>{{ navL4.title }}</span>
50
</MDBSideNavLink>
51
<MDBSideNavLink :to="navL4.link" v-else>
52
<span>{{ navL4.title }}</span>
53
</MDBSideNavLink>
54
</MDBSideNavItem>
55
<MDBSideNavItem collapse :title="navL4.title" class="l-4" v-if="navL4.hasSubpages == '1'">
56
<template v-for="{ navL5 } in navL4.children">
57
<MDBSideNavItem class="l-5">
58
<MDBSideNavLink :href="navL5.link" v-if="navL5.doktype==3">
59
<span>{{ navL5.title }}</span>
60
</MDBSideNavLink>
61
<MDBSideNavLink :to="navL5.link" v-else>
62
<span>{{ navL5.title }}</span>
63
</MDBSideNavLink>
64
</MDBSideNavItem>
65
</template>
66
</MDBSideNavItem>
67
</template>
68
</MDBSideNavItem>
69
</template>
70
</MDBSideNavItem>
71
</template>
72
</MDBSideNavItem>
73
</template>
74
</MDBSideNavMenu>
75
</MDBSideNav>
76
</template>
xxxxxxxxxx
1
<style>
2
#app {
3
font-family: Roboto, Helvetica, Arial, sans-serif;
4
}
5
</style>
xxxxxxxxxx
1
<script>
2
import { MDBContainer } from "mdb-vue-ui-kit";
3
4
export default {
5
name: "App",
6
components: {
7
MDBContainer
8
},
9
props: {
10
msg: String
11
}
12
};
13
</script>
Console errors: 0