docs: add missing app key for transitions (#8385)

This commit is contained in:
Daniel Roe 2022-10-21 10:26:59 +01:00 committed by GitHub
parent e1ab5cf6d6
commit b9d83b3cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,6 +212,7 @@ Both `pageTransition` and `layoutTransition` keys accept [`TransitionProps`](htt
```ts [nuxt.config.ts] ```ts [nuxt.config.ts]
export default defineNuxtConfig({ export default defineNuxtConfig({
app: {
pageTransition: { pageTransition: {
name: 'fade', name: 'fade',
mode: 'out-in' // default mode: 'out-in' // default
@ -220,6 +221,7 @@ export default defineNuxtConfig({
name: 'slide', name: 'slide',
mode: 'out-in' // default mode: 'out-in' // default
} }
}
}) })
``` ```
@ -257,8 +259,10 @@ Or globally in the `nuxt.config`:
```ts [nuxt.config.ts] ```ts [nuxt.config.ts]
defineNuxtConfig({ defineNuxtConfig({
app: {
pageTransition: false, pageTransition: false,
layoutTransition: false layoutTransition: false
}
}) })
``` ```