Require props of QA, Question and Answer

master
Raymonzut 5 years ago
parent 9bfbb03636
commit 05e428223d
No known key found for this signature in database
GPG Key ID: 97CF2D8BE2C69FC7
  1. 5
      client/src/components/Answer.vue
  2. 10
      client/src/components/QA.vue
  3. 5
      client/src/components/Question.vue

@ -8,7 +8,10 @@
export default { export default {
name: 'Answer', name: 'Answer',
props: { props: {
a: String a: {
type: String,
required: true,
}
} }
} }
</script> </script>

@ -16,8 +16,14 @@ export default {
Answer, Answer,
}, },
props: { props: {
q: String, q: {
a: String type: String,
required: true,
},
a: {
type: String,
required: true,
}
} }
} }
</script> </script>

@ -8,7 +8,10 @@
export default { export default {
name: 'Question', name: 'Question',
props: { props: {
q: String q: {
type: String,
required: true,
}
} }
} }
</script> </script>

Loading…
Cancel
Save