forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFloatingPoint.vue
More file actions
51 lines (44 loc) · 853 Bytes
/
FloatingPoint.vue
File metadata and controls
51 lines (44 loc) · 853 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
46
47
48
49
50
51
<template>
<div class="q-pa-md">
<q-badge color="secondary">
Model: {{ smallStep }} (0.1 to 1.5, step 0.1)
</q-badge>
<q-slider
v-model="smallStep"
:min="0.1"
:max="1.5"
:step="0.1"
/>
<q-badge color="secondary">
Model: {{ xsmallStep }} (0.1 to 1, step 0.05)
</q-badge>
<q-slider
v-model="xsmallStep"
:min="0.1"
:max="1"
:step="0.05"
/>
<q-badge color="secondary">
Model: {{ zeroStep }} (0.0 to 10.5, step 0)
</q-badge>
<q-slider
v-model="zeroStep"
:min="0.0"
:max="10.5"
:step="0"
color="red"
/>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
return {
smallStep: ref(0.3),
xsmallStep: ref(0.530),
zeroStep: ref(0.5)
}
}
}
</script>