From 5f330ad0255ec170200ab95134edc114965567f7 Mon Sep 17 00:00:00 2001 From: xjccc <546534045@qq.com> Date: Sat, 2 Nov 2024 17:41:15 +0800 Subject: [PATCH] docs: add props to special metadata (#29708) --- docs/2.guide/2.directory-structure/1.pages.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/2.guide/2.directory-structure/1.pages.md b/docs/2.guide/2.directory-structure/1.pages.md index 0efb13daac..57d88ddd5c 100644 --- a/docs/2.guide/2.directory-structure/1.pages.md +++ b/docs/2.guide/2.directory-structure/1.pages.md @@ -323,6 +323,10 @@ You may define a name for this page's route. You may define a path matcher, if you have a more complex pattern than can be expressed with the file name. See [the `vue-router` docs](https://router.vuejs.org/guide/essentials/route-matching-syntax.html#custom-regex-in-params) for more information. +#### `props` + +Allows accessing the route `params` as props passed to the page component. See[the `vue-router` docs](https://router.vuejs.org/guide/essentials/passing-props) for more information. + ### Typing Custom Metadata If you add custom metadata for your pages, you may wish to do so in a type-safe way. It is possible to augment the type of the object accepted by `definePageMeta`: