forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInaList.vue
More file actions
65 lines (59 loc) · 1.93 KB
/
InaList.vue
File metadata and controls
65 lines (59 loc) · 1.93 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="q-pa-md">
<div class="q-gutter-sm">
<q-list>
<!--
Rendering a <label> tag (notice tag="label")
so QCheckboxes will respond to clicks on QItems to
change Toggle state.
-->
<q-item tag="label" v-ripple>
<q-item-section avatar>
<q-checkbox v-model="color" val="teal" color="teal" />
</q-item-section>
<q-item-section>
<q-item-label>Teal</q-item-label>
</q-item-section>
</q-item>
<q-item tag="label" v-ripple>
<q-item-section avatar>
<q-checkbox v-model="color" val="orange" color="orange" />
</q-item-section>
<q-item-section>
<q-item-label>Orange</q-item-label>
<q-item-label caption>With description</q-item-label>
</q-item-section>
</q-item>
<q-item tag="label" v-ripple>
<q-item-section avatar top>
<q-checkbox v-model="color" val="cyan" color="cyan" />
</q-item-section>
<q-item-section>
<q-item-label>Cyan</q-item-label>
<q-item-label caption>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</div>
<div class="q-px-sm q-mt-sm">
Your selection is: <strong>{{ color }}</strong>
</div>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
color: ref(['cyan'])
}
}
}
</script>