mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: docs/3.api/3.utils/define-page-meta.md (#23006)
This commit is contained in:
parent
89c4436ae1
commit
b27740cf50
@ -25,6 +25,7 @@ definePageMeta(meta: PageMeta) => void
|
|||||||
interface PageMeta {
|
interface PageMeta {
|
||||||
validate?: (route: RouteLocationNormalized) => boolean | Promise<boolean> | Partial<NuxtError> | Promise<Partial<NuxtError>>
|
validate?: (route: RouteLocationNormalized) => boolean | Promise<boolean> | Partial<NuxtError> | Promise<Partial<NuxtError>>
|
||||||
redirect?: RouteRecordRedirectOption
|
redirect?: RouteRecordRedirectOption
|
||||||
|
path?: string
|
||||||
alias?: string | string[]
|
alias?: string | string[]
|
||||||
pageTransition?: boolean | TransitionProps
|
pageTransition?: boolean | TransitionProps
|
||||||
layoutTransition?: boolean | TransitionProps
|
layoutTransition?: boolean | TransitionProps
|
||||||
@ -45,6 +46,12 @@ interface PageMeta {
|
|||||||
|
|
||||||
An object accepting the following page metadata:
|
An object accepting the following page metadata:
|
||||||
|
|
||||||
|
**`path`**
|
||||||
|
|
||||||
|
- **Type**: `string`
|
||||||
|
|
||||||
|
You may define a path matcher, if you have a more complex pattern than can be expressed with the file name.
|
||||||
|
|
||||||
**`alias`**
|
**`alias`**
|
||||||
|
|
||||||
- **Type**: `string | string[]`
|
- **Type**: `string | string[]`
|
||||||
|
Loading…
Reference in New Issue
Block a user