Select Git revision
QuestionnaireComponent.js
Forked from
Stud.IP / Stud.IP
1744 commits behind, 212 commits ahead of the upstream repository.

Jan-Hendrik Willms authored and
Jan-Hendrik Willms
committed
Closes #3915 and #3914 Merge request studip/studip!2833
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
QuestionnaireComponent.js 515 B
export const QuestionnaireComponent = {
props: {
value: Object
},
data () {
return {val_clone: this.value};
},
methods: {
setDefaultValues(value) {
this.val_clone = Object.assign(value, this.value);
}
},
watch: {
val_clone: {
handler(current) {
this.$emit('input', current);
},
deep: true
},
value (new_val) {
this.val_clone = new_val;
}
}
};