created MainContentLayout slot template

This commit is contained in:
2019-09-27 16:26:05 +02:00
parent 08e6433c0e
commit df9f5a865c
8 changed files with 179 additions and 84 deletions
+18 -14
View File
@@ -1,26 +1,30 @@
<template>
<transition name="fade" appear>
<span v-if="!loaded">Loading...</span>
<article v-else class="item row">
<header class="col-3">
<h1>
{{ item.title }}
</h1>
</header>
<section v-html="item.tei" class="col-6"/>
<section class="col-3">
tree
</section>
</article>
</transition>
<MainContentLayout id="text" class="text">
<template v-slot:header>
<h1>
{{ item.title }}
</h1>
<span v-if="!loaded">Loading...</span>
</template>
<section v-html="item.tei" class="col-6"/>
<template v-slot:nav>
tree
</template>
</MainContentLayout>
</template>
<script>
import { REST } from 'api/rest-axios'
import MainContentLayout from '../components/Layouts/MainContentLayout'
export default {
name: 'Item',
components: {
MainContentLayout
},
props: {
uuid: {
type: String,