API 参考 / RouteRecordNormalized
接口:RouteRecordNormalized
一条路由记录的规范化版本。
继承关系
RouteRecordNormalized
属性
aliasOf
• aliasOf: undefined
| RouteRecordNormalized
定义了是否这条记录是另一条的别名。如果记录是原始记录,则该属性为 undefined
。
beforeEnter
• beforeEnter: undefined
| NavigationGuardWithThis
<undefined
> | NavigationGuardWithThis
<undefined
>[]
被注册的 beforeEnter 守卫
children
• children: RouteRecordRaw
[]
嵌套的路由记录。
components
• components: undefined
| null
| Record
<string
, RawRouteComponent
>
{@inheritDoc RouteRecordMultipleViews.components}
instances
• instances: Record
<string
, undefined
| null
| ComponentPublicInstance
<{}, {}, {}, {}, {}, {}, {}, {}, false
, ComponentOptionsBase
<any
, any
, any
, any
, any
, any
, any
, any
, any
, {}, {}, string
>, {}>>
Mounted route component instances Having the instances on the record mean beforeRouteUpdate and beforeRouteLeave guards can only be invoked with the latest mounted app instance if there are multiple application instances rendering the same view, basically duplicating the content on the page, which shouldn't happen in practice. It will work if multiple apps are rendering different named views.
meta
• meta: RouteMeta
{@inheritDoc _RouteRecordBase.meta}
name
• name: undefined
| RouteRecordName
{@inheritDoc _RouteRecordBase.name}
path
• path: string
{@inheritDoc _RouteRecordBase.path}
props
• props: Record
<string
, _RouteRecordProps
>
{@inheritDoc RouteRecordMultipleViews.props}
redirect
• redirect: undefined
| RouteRecordRedirectOption
{@inheritDoc _RouteRecordBase.redirect}