mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
28 lines
453 B
Vue
28 lines
453 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>
|
|
export default {
|
|
layout: false,
|
|
data: () => ({
|
|
layout: 'custom'
|
|
})
|
|
}
|
|
</script>
|