2021-06-30 16:32:22 +00:00
|
|
|
<template>
|
2022-03-23 08:44:36 +00:00
|
|
|
<div class="p-4">
|
|
|
|
Custom layout defined dynamically with the <code>NuxtLayout</code> component
|
|
|
|
<br>
|
2021-06-30 16:32:22 +00:00
|
|
|
<NuxtLayout :name="layout">
|
|
|
|
Default slot
|
2022-03-23 08:44:36 +00:00
|
|
|
<br>
|
2022-09-30 12:55:32 +00:00
|
|
|
<button class="border p-1 rounded" @click="layout = layout ? null : 'custom'">
|
2021-06-30 16:32:22 +00:00
|
|
|
Switch layout
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<template #header>
|
|
|
|
Header slot
|
|
|
|
</template>
|
|
|
|
</NuxtLayout>
|
2022-03-23 08:44:36 +00:00
|
|
|
<br>
|
2021-06-30 16:32:22 +00:00
|
|
|
<NuxtLink to="/">
|
|
|
|
Back to home
|
|
|
|
</NuxtLink>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-01-17 18:27:23 +00:00
|
|
|
definePageMeta({
|
|
|
|
layout: false
|
|
|
|
})
|
2021-06-30 16:32:22 +00:00
|
|
|
export default {
|
|
|
|
data: () => ({
|
|
|
|
layout: 'custom'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
</script>
|