forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRangeColoring.vue
More file actions
85 lines (78 loc) · 1.48 KB
/
RangeColoring.vue
File metadata and controls
85 lines (78 loc) · 1.48 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
<div class="q-pa-lg">
<q-range
v-model="model"
color="orange"
thumb-color="purple"
label-color="black"
label-text-color="yellow"
markers
marker-labels
switch-marker-labels-side
label-always
switch-label-side
:min="0"
:max="6"
/>
<q-range
class="q-mt-xl"
v-model="model"
color="orange"
left-thumb-color="purple-3"
left-label-color="green"
right-thumb-color="purple-8"
right-label-color="black"
markers
marker-labels
switch-marker-labels-side
label-always
switch-label-side
:min="0"
:max="6"
/>
<q-range
class="q-mt-xl"
v-model="secondModel"
color="green"
track-color="orange"
inner-track-color="transparent"
selection-color="red"
:max="10"
markers
/>
<q-range
v-model="secondModel"
color="purple"
inner-track-color="light-blue-3"
:max="10"
:inner-min="2"
:inner-max="8"
markers
/>
<q-range
v-model="secondModel"
color="teal"
track-color="light-blue-2"
inner-track-color="light-blue-5"
:max="10"
:inner-min="2"
:inner-max="8"
markers
/>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
model: ref({
min: 2, max: 4
}),
secondModel: ref({
min: 3, max: 5
})
}
}
}
</script>