From a07b34a6edb2ab900c7397fcf0965b1a468d910a Mon Sep 17 00:00:00 2001 From: Maxim Date: Mon, 11 Sep 2023 01:40:13 +0200 Subject: [PATCH] docs: add `name` param to `PageMeta` interface description (#23107) --- docs/3.api/3.utils/define-page-meta.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/3.api/3.utils/define-page-meta.md b/docs/3.api/3.utils/define-page-meta.md index 71c460a241..1f43057426 100644 --- a/docs/3.api/3.utils/define-page-meta.md +++ b/docs/3.api/3.utils/define-page-meta.md @@ -25,6 +25,7 @@ definePageMeta(meta: PageMeta) => void interface PageMeta { validate?: (route: RouteLocationNormalized) => boolean | Promise | Partial | Promise> redirect?: RouteRecordRedirectOption + name?: string path?: string alias?: string | string[] pageTransition?: boolean | TransitionProps @@ -46,6 +47,12 @@ interface PageMeta { 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`** - **Type**: `string`