|
|
@@ -36,13 +36,14 @@
|
|
36
|
36
|
v-model='answers[makeKebob(prompt.question)]')
|
|
37
|
37
|
label(:for='response') {{ response }}
|
|
38
|
38
|
//- TODO: Slider from -3 to 0 to +3 (increments of 1)
|
|
39
|
|
- .response-wrapper(v-if='prompt.type === "slider"')
|
|
|
39
|
+ .response-wrapper(v-else-if='prompt.type === "slide"')
|
|
40
|
40
|
label {{ prompt.type }}
|
|
41
|
41
|
input(
|
|
42
|
42
|
type='range'
|
|
43
|
43
|
min='-3'
|
|
44
|
44
|
max='3'
|
|
45
|
45
|
v-model='answers[makeKebob(prompt.question)]')
|
|
|
46
|
+ span {{ answers[makeKebob(prompt.question)] }}
|
|
46
|
47
|
|
|
47
|
48
|
footer.f-row.w-full
|
|
48
|
49
|
button.p-1(:disabled='state.step == 1' @click='back') back
|
|
|
@@ -55,7 +56,9 @@
|
|
55
|
56
|
<script setup>
|
|
56
|
57
|
import Joi from 'joi'
|
|
57
|
58
|
import { validatorMapping, makeKebob } from '@/utils'
|
|
58
|
|
-import { defineProps, reactive } from 'vue'
|
|
|
59
|
+import { defineProps, reactive, ref } from 'vue'
|
|
|
60
|
+
|
|
|
61
|
+const slidevalue = ref('')
|
|
59
|
62
|
|
|
60
|
63
|
const props = defineProps({
|
|
61
|
64
|
form: {
|