forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathList.vue
More file actions
46 lines (42 loc) · 1.22 KB
/
List.vue
File metadata and controls
46 lines (42 loc) · 1.22 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
<template>
<div class="q-pa-md">
<q-list>
<q-item tag="label" v-ripple>
<q-item-section>
<q-item-label>Battery too low</q-item-label>
</q-item-section>
<q-item-section avatar>
<q-toggle color="blue" v-model="notifications" val="battery" />
</q-item-section>
</q-item>
<q-item tag="label" v-ripple>
<q-item-section>
<q-item-label>Friend request</q-item-label>
<q-item-label caption>Allow notification</q-item-label>
</q-item-section>
<q-item-section avatar>
<q-toggle color="green" v-model="notifications" val="friend" />
</q-item-section>
</q-item>
<q-item tag="label" v-ripple>
<q-item-section>
<q-item-label>Picture uploaded</q-item-label>
<q-item-label caption>Allow notification when uploading images</q-item-label>
</q-item-section>
<q-item-section avatar>
<q-toggle color="red" v-model="notifications" val="picture" />
</q-item-section>
</q-item>
</q-list>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
notifications: ref(['friend'])
}
}
}
</script>