35 lines
648 B
Vue
35 lines
648 B
Vue
<template>
|
|
<radioQuestion class="radioQuestion"
|
|
:questionText="questionText"
|
|
:answers="years"
|
|
v-model="selectedYear"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import radioQuestion from "@/common-components/radio-question/radio-question";
|
|
|
|
export default {
|
|
name: "year-question",
|
|
data(){
|
|
return {
|
|
selectedYear: null
|
|
}
|
|
},
|
|
props: {
|
|
questionText: String,
|
|
years: Array,
|
|
modelValue: String
|
|
},
|
|
created() {
|
|
},
|
|
components: {
|
|
radioQuestion,
|
|
},
|
|
watch: {
|
|
selectedYear(val) {
|
|
this.$emit('update:modelValue', val)
|
|
}
|
|
}
|
|
};
|
|
</script>
|