mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: add missing app
key for transitions (#8385)
This commit is contained in:
parent
e1ab5cf6d6
commit
b9d83b3cd1
@ -212,14 +212,16 @@ Both `pageTransition` and `layoutTransition` keys accept [`TransitionProps`](htt
|
|||||||
|
|
||||||
```ts [nuxt.config.ts]
|
```ts [nuxt.config.ts]
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
pageTransition: {
|
app: {
|
||||||
name: 'fade',
|
pageTransition: {
|
||||||
mode: 'out-in' // default
|
name: 'fade',
|
||||||
},
|
mode: 'out-in' // default
|
||||||
layoutTransition: {
|
},
|
||||||
name: 'slide',
|
layoutTransition: {
|
||||||
mode: 'out-in' // default
|
name: 'slide',
|
||||||
}
|
mode: 'out-in' // default
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -257,8 +259,10 @@ Or globally in the `nuxt.config`:
|
|||||||
|
|
||||||
```ts [nuxt.config.ts]
|
```ts [nuxt.config.ts]
|
||||||
defineNuxtConfig({
|
defineNuxtConfig({
|
||||||
pageTransition: false,
|
app: {
|
||||||
layoutTransition: false
|
pageTransition: false,
|
||||||
|
layoutTransition: false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user