forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptionEmitValue.vue
More file actions
63 lines (59 loc) · 1.17 KB
/
OptionEmitValue.vue
File metadata and controls
63 lines (59 loc) · 1.17 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
<template>
<div class="q-pa-md" style="max-width: 300px">
<div class="q-gutter-md">
<q-badge color="secondary" multi-line>
Model: "{{ model }}"
</q-badge>
<q-select
filled
v-model="model"
:options="options"
label="Standard"
emit-value
/>
</div>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
model: ref(null),
options: [
{
label: 'Google',
value: 'goog',
description: 'Search engine',
icon: 'mail'
},
{
label: 'Facebook',
value: 'fb',
description: 'Social media',
icon: 'bluetooth'
},
{
label: 'Twitter',
value: 'twt',
description: 'Quick updates',
icon: 'map'
},
{
label: 'Apple',
value: 'app',
description: 'iStuff',
icon: 'golf_course'
},
{
label: 'Oracle',
value: 'ora',
disable: true,
description: 'Databases',
icon: 'casino'
}
]
}
}
}
</script>