返回介绍

入门

基础

进阶

迁移

API 手册

接口

路由位置匹配 RouteLocationMatched

发布于 2024-04-15 21:57:55 字数 6572 浏览 0 评论 0 收藏 0

Normalized version of a route record.

Hierarchy

Properties

aliasOf

aliasOf: undefined | RouteRecordNormalized

Defines if this record is the alias of another one. This property is undefined if the record is the original one.

Inherited from

RouteRecordNormalized.aliasOf


beforeEnter

beforeEnter: undefined | NavigationGuardWithThis<undefined> | NavigationGuardWithThis<undefined>

Registered beforeEnter guards

Inherited from

RouteRecordNormalized.beforeEnter


children

children: RouteRecordRaw

Nested route records.

Inherited from

RouteRecordNormalized.children


components

components: undefined | null | Record<string, RouteComponent>

{@inheritDoc RouteRecordMultipleViews.components}

Overrides

RouteRecordNormalized.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.

Inherited from

RouteRecordNormalized.instances


meta

meta: RouteMeta

{@inheritDoc _RouteRecordBase.meta}

Inherited from

RouteRecordNormalized.meta


name

name: undefined | RouteRecordName

{@inheritDoc _RouteRecordBase.name}

Inherited from

RouteRecordNormalized.name


path

path: string

{@inheritDoc _RouteRecordBase.path}

Inherited from

RouteRecordNormalized.path


props

props: Record<string, _RouteRecordProps>

{@inheritDoc RouteRecordMultipleViews.props}

Inherited from

RouteRecordNormalized.props


redirect

redirect: undefined | RouteRecordRedirectOption

{@inheritDoc _RouteRecordBase.redirect}

Inherited from

RouteRecordNormalized.redirect

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文