Nuxt/examples/with-layouts/layouts/custom.vue
2022-03-23 09:44:36 +01:00

19 lines
292 B
Vue

<template>
<div>
<strong>Custom layout</strong>
Header slot:
<slot name="header">
Default slot content for <code>Custom</code> layout
</slot>
<slot />
</div>
</template>
<script>
export default {
created () {
console.log('layout created')
}
}
</script>