Nuxt/examples/with-layouts/pages/manual.vue

30 lines
472 B
Vue
Raw Normal View History

2021-06-30 16:32:22 +00:00
<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
})
2021-06-30 16:32:22 +00:00
export default {
data: () => ({
layout: 'custom'
})
}
</script>