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
+41
View File
@@ -0,0 +1,41 @@
<template>
<article class="locorum item">
<header>
<h1>
<a
:href="item.url"
@click.prevent="onclick"
@keyup.enter="onclick"
v-html="item.title"
/>
</h1>
</header>
</article>
</template>
<script>
export default {
name: 'LocorumItem',
props: {
item: {
type: Object,
required: true
}
},
data: () => ({
}),
methods: {
onclick () {
console.log('clicked on locorum item', this.item)
// this.$router.push({
// name: `locorumItem`,
// query: { id: this.item.uuid }
// })
}
}
}
</script>
<style lang="scss" scoped>
</style>