forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleMenu.vue
More file actions
93 lines (81 loc) · 1.92 KB
/
ExampleMenu.vue
File metadata and controls
93 lines (81 loc) · 1.92 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<template>
<div class="q-pa-md" style="max-width: 250px">
<q-list bordered padding class="rounded-borders text-primary">
<q-item
clickable
v-ripple
:active="link === 'inbox'"
@click="link = 'inbox'"
active-class="my-menu-link"
>
<q-item-section avatar>
<q-icon name="inbox" />
</q-item-section>
<q-item-section>Inbox</q-item-section>
</q-item>
<q-item
clickable
v-ripple
:active="link === 'outbox'"
@click="link = 'outbox'"
active-class="my-menu-link"
>
<q-item-section avatar>
<q-icon name="send" />
</q-item-section>
<q-item-section>Outbox</q-item-section>
</q-item>
<q-item
clickable
v-ripple
:active="link === 'trash'"
@click="link = 'trash'"
active-class="my-menu-link"
>
<q-item-section avatar>
<q-icon name="delete" />
</q-item-section>
<q-item-section>Trash</q-item-section>
</q-item>
<q-separator spaced />
<q-item
clickable
v-ripple
:active="link === 'settings'"
@click="link = 'settings'"
active-class="my-menu-link"
>
<q-item-section avatar>
<q-icon name="settings" />
</q-item-section>
<q-item-section>Settings</q-item-section>
</q-item>
<q-item
clickable
v-ripple
:active="link === 'help'"
@click="link = 'help'"
active-class="my-menu-link"
>
<q-item-section avatar>
<q-icon name="help" />
</q-item-section>
<q-item-section>Help</q-item-section>
</q-item>
</q-list>
</div>
</template>
<script>
export default {
data () {
return {
link: 'inbox'
}
}
}
</script>
<style lang="sass">
.my-menu-link
color: white
background: #F2C037
</style>