34 lines
608 B
Vue
34 lines
608 B
Vue
<template>
|
|
<buttonQuestion class="radioQuestion"
|
|
:questionText="questionText"
|
|
:answers="years"
|
|
groupName="Choose Vehicle Year"
|
|
v-model="selectedYear"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import buttonQuestion from "@/common-components/button-question/button-question";
|
|
|
|
export default {
|
|
name: "year-question",
|
|
data() {
|
|
return {
|
|
selectedYear: null,
|
|
};
|
|
},
|
|
props: {
|
|
questionText: String,
|
|
years: Array,
|
|
modelValue: String,
|
|
},
|
|
components: {
|
|
buttonQuestion,
|
|
},
|
|
watch: {
|
|
selectedYear(val) {
|
|
this.$emit("update:modelValue", val);
|
|
}
|
|
},
|
|
};
|
|
</script>
|