forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplayCustomValue.vue
More file actions
40 lines (38 loc) · 830 Bytes
/
DisplayCustomValue.vue
File metadata and controls
40 lines (38 loc) · 830 Bytes
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
<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"
stack-label
label="Standard"
:display-value="`Company: ${model ? model : '*none*'}`"
>
<template v-slot:append>
<q-icon
v-if="model !== null"
class="cursor-pointer"
name="clear"
@click.stop="model = null"
/>
</template>
</q-select>
</div>
</div>
</template>
<script>
export default {
data () {
return {
model: 'Twitter',
options: [
'Google', 'Facebook', 'Twitter', 'Apple', 'Oracle'
]
}
}
}
</script>