mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
30 lines
472 B
Vue
30 lines
472 B
Vue
<template>
|
|
<div>
|
|
Manual control
|
|
<NuxtLayout :name="layout">
|
|
Default slot
|
|
<button @click="layout ? layout = null : layout = 'custom'">
|
|
Switch layout
|
|
</button>
|
|
|
|
<template #header>
|
|
Header slot
|
|
</template>
|
|
</NuxtLayout>
|
|
<NuxtLink to="/">
|
|
Back to home
|
|
</NuxtLink>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
definePageMeta({
|
|
layout: false
|
|
})
|
|
export default {
|
|
data: () => ({
|
|
layout: 'custom'
|
|
})
|
|
}
|
|
</script>
|