forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomizing.vue
More file actions
40 lines (37 loc) · 1.12 KB
/
Customizing.vue
File metadata and controls
40 lines (37 loc) · 1.12 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
<template>
<div class="q-pa-md">
<div class="q-gutter-md">
<div class="cursor-pointer" style="width: 100px">
{{ label }}
<q-popup-edit v-model="label" class="bg-accent text-white" v-slot="scope">
<q-input dark color="white" v-model="scope.value" dense autofocus counter @keyup.enter="scope.set">
<template v-slot:append>
<q-icon name="edit" />
</template>
</q-input>
</q-popup-edit>
</div>
<div class="cursor-pointer" style="width: 100px">
{{ label2 }}
<q-popup-edit v-model="label2" :cover="false" :offset="[0, 10]" v-slot="scope">
<q-input color="accent" v-model="scope.value" dense autofocus counter @keyup.enter="scope.set">
<template v-slot:prepend>
<q-icon name="record_voice_over" color="accent" />
</template>
</q-input>
</q-popup-edit>
</div>
</div>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
label: ref('Click me'),
label2: ref('Also click me')
}
}
}
</script>