mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
docs: add name
param to PageMeta
interface description (#23107)
This commit is contained in:
parent
5e33d316aa
commit
a07b34a6ed
@ -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
|
||||||
|
name?: string
|
||||||
path?: string
|
path?: string
|
||||||
alias?: string | string[]
|
alias?: string | string[]
|
||||||
pageTransition?: boolean | TransitionProps
|
pageTransition?: boolean | TransitionProps
|
||||||
@ -46,6 +47,12 @@ interface PageMeta {
|
|||||||
|
|
||||||
An object accepting the following page metadata:
|
An object accepting the following page metadata:
|
||||||
|
|
||||||
|
**`name`**
|
||||||
|
|
||||||
|
- **Type**: `string`
|
||||||
|
|
||||||
|
You may define a name for this page's route. By default, name is generated based on path inside the [`pages/` directory](/docs/guide/directory-structure/pages).
|
||||||
|
|
||||||
**`path`**
|
**`path`**
|
||||||
|
|
||||||
- **Type**: `string`
|
- **Type**: `string`
|
||||||
|
Loading…
Reference in New Issue
Block a user