docs: add missing props for <NuxtPage> (#24675)

This commit is contained in:
Idorenyin Udoh 2023-12-10 22:45:51 +01:00 committed by GitHub
parent 700a615553
commit 0901337f48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,12 @@ It accepts same `name` and `route` props.
- type: `string` - type: `string`
- `route`: route location that has all of its components resolved. - `route`: route location that has all of its components resolved.
- type: `RouteLocationNormalized` - type: `RouteLocationNormalized`
- `pageKey:` control when the `NuxtPage` component is re-rendered. - `pageKey`: control when the `NuxtPage` component is re-rendered.
- type: `string` or `function` - type: `string` or `function`
- `transition`: define global transitions for all pages rendered with the `NuxtPage` component.
- type: `boolean` or `TransitionProps`
- `keepalive`: control state preservation of pages rendered with the `NuxtPage` component.
- type: `boolean` or `KeepAliveProps`
::callout ::callout
Nuxt automatically resolves the `name` and `route` by scanning and rendering all Vue component files found in the `/pages` directory. Nuxt automatically resolves the `name` and `route` by scanning and rendering all Vue component files found in the `/pages` directory.