Nuxt/examples/with-layouts/layouts/custom.vue

19 lines
292 B
Vue
Raw Normal View History

2021-06-30 16:32:22 +00:00
<template>
<div>
<strong>Custom layout</strong>
Header slot:
<slot name="header">
Default slot content for <code>Custom</code> layout
2021-06-30 16:32:22 +00:00
</slot>
<slot />
</div>
</template>
<script>
export default {
created () {
console.log('layout created')
}
}
</script>