forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLabelValue.vue
More file actions
45 lines (40 loc) · 718 Bytes
/
LabelValue.vue
File metadata and controls
45 lines (40 loc) · 718 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
41
42
43
44
45
<template>
<div class="q-pa-md">
<q-badge color="secondary">
Model: {{ value }} (-20 to 20, step 4)
</q-badge>
<q-slider
v-model="value"
:min="-20"
:max="20"
:step="4"
label
:label-value="value + 'px'"
label-always
color="purple"
/>
<q-badge color="secondary">
Model: {{ value }} (-20 to 20, step 4)
</q-badge>
<q-slider
v-model="value"
:min="-20"
:max="20"
:step="4"
label
:label-value="value + 'px'"
label-always
color="red"
/>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
value: ref(0)
}
}
}
</script>