Require props of QA, Question and Answer

This commit is contained in:
Raymonzut
2020-04-25 13:19:10 +02:00
parent 9bfbb03636
commit 05e428223d
3 changed files with 16 additions and 4 deletions
+4 -1
View File
@@ -8,7 +8,10 @@
export default {
name: 'Answer',
props: {
a: String
a: {
type: String,
required: true,
}
}
}
</script>
+8 -2
View File
@@ -16,8 +16,14 @@ export default {
Answer,
},
props: {
q: String,
a: String
q: {
type: String,
required: true,
},
a: {
type: String,
required: true,
}
}
}
</script>
+4 -1
View File
@@ -8,7 +8,10 @@
export default {
name: 'Question',
props: {
q: String
q: {
type: String,
required: true,
}
}
}
</script>