@nuxt/docs-nightly 4.3.0-29442002.5d974989 → 4.3.0-29442149.b56ec45a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -69,6 +69,12 @@ Then you can use the `custom` layout in your page:
|
|
|
69
69
|
|
|
70
70
|
```vue twoslash [pages/about.vue]
|
|
71
71
|
<script setup lang="ts">
|
|
72
|
+
declare module 'nuxt/app' {
|
|
73
|
+
interface NuxtLayouts {
|
|
74
|
+
'custom': unknown
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
// ---cut---
|
|
72
78
|
definePageMeta({
|
|
73
79
|
layout: 'custom',
|
|
74
80
|
})
|
|
@@ -118,6 +124,12 @@ You can also use the [`setPageLayout`](/docs/4.x/api/utils/set-page-layout) help
|
|
|
118
124
|
|
|
119
125
|
```vue twoslash
|
|
120
126
|
<script setup lang="ts">
|
|
127
|
+
declare module 'nuxt/app' {
|
|
128
|
+
interface NuxtLayouts {
|
|
129
|
+
'custom': unknown
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
// ---cut---
|
|
121
133
|
function enableCustomLayout () {
|
|
122
134
|
setPageLayout('custom')
|
|
123
135
|
}
|