mirror of
https://github.com/Dannecron/ich-lerne-deutsch.git
synced 2025-12-25 21:02:35 +03:00
Add article part page content. Some small refactoring
This commit is contained in:
@@ -2,16 +2,19 @@
|
||||
<v-container grid-list-md v-if="part">
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12 sm10 offset-sm1>
|
||||
<!-- content -->
|
||||
<book-part-content :part="part"></book-part-content>
|
||||
</v-flex>
|
||||
<v-flex xs12 sm10 offset-sm1>
|
||||
<!-- words -->
|
||||
<book-part-words :words="part.words"></book-part-words>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BookPartContent from '@/components/Article/Part/Content';
|
||||
import BookPartWords from '@/components/Article/Words';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
articleId: {
|
||||
@@ -28,6 +31,10 @@
|
||||
return this.$store.getters.getParts.find(part => part.articleId === this.articleId
|
||||
&& part.articlePartId === this.partId);
|
||||
}
|
||||
}
|
||||
},
|
||||
components: {
|
||||
BookPartContent,
|
||||
BookPartWords,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user