mirror of
https://github.com/Dannecron/ich-lerne-deutsch.git
synced 2025-12-25 21:02:35 +03:00
add article and article part pages, extend article store
This commit is contained in:
33
src/views/ArticlePart.vue
Normal file
33
src/views/ArticlePart.vue
Normal file
@@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<v-container grid-list-md v-if="part">
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12 sm10 offset-sm1>
|
||||
<!-- content -->
|
||||
</v-flex>
|
||||
<v-flex xs12 sm10 offset-sm1>
|
||||
<!-- words -->
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
articleId: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
partId: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
part() {
|
||||
return this.$store.getters.getParts.find(part => part.articleId === this.articleId
|
||||
&& part.articlePartId === this.partId);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user