入门
基础
- 动态路由匹配 Dynamic Route Matching
- 路由的匹配语法 Routes' Matching Syntax
- 嵌套路由 Nested Routes
- 编程式导航 Programmatic Navigation
- 命名路由 Named Routes
- 命名视图 Named Views
- 重定向和别名 Redirect and Alias
- 路由组件传参 Passing Props to Route Components
- 不同的历史记录模式 Different History modes
进阶
- 导航守卫 Navigation guards
- 导航故障 Navigation Failures
- 路由元信息 Route Meta Fields
- 数据获取 Data Fetching
- 组合式 API Composition API
- 过渡动效 Transitions
- 滚动行为 Scroll Behavior
- 路由懒加载 Lazy Loading Routes
- 类型化路由 Typed Routes
- 扩展路由链接 Extending RouterLink
- 动态路由 Dynamic Routing
迁移
API 手册
接口
- 历史记录状态 HistoryState
- 导航故障 NavigationFailure
- 导航卫士 NavigationGuard
- 导航卫士下一页 NavigationGuardNext
- 导航卫士用这个 NavigationGuardWithThis
- 导航后 NavigationHookAfter
- 路由位置 RouteLocation
- 路由位置匹配 RouteLocationMatched
- 路由位置规范化 RouteLocationNormalized
- 路线位置规范加载 RouteLocationNormalizedLoaded
- 路由位置选项 RouteLocationOptions
- 路线梅塔 RouteMeta
- 路由记录规范化 RouteRecordNormalized
- 路由器 Router
- 路由器历史 RouterHistory
- 路由器链接配置文件 RouterLinkProps
- 路由器选项 RouterOptions
- 路由器滚动行为 RouterScrollBehavior
- 路由器视图Props RouterViewProps
路线位置规范加载 RouteLocationNormalizedLoaded
RouteLocationRaw with
Hierarchy
_RouteLocationBase
↳RouteLocationNormalizedLoaded
Properties
fullPath
• fullPath: string
The whole location including the search
and hash
. This string is percentage encoded.
Inherited from
_RouteLocationBase.fullPath
hash
• hash: string
Hash of the current location. If present, starts with a #
.
Inherited from
_RouteLocationBase.hash
matched
• matched: RouteLocationMatched
Array of RouteLocationMatched containing only plain components (any lazy-loaded components have been loaded and were replaced inside the components
object) so it can be directly used to display routes. It cannot contain redirect records either
meta
• meta: RouteMeta
Merged meta
properties from all the matched route records.
Inherited from
_RouteLocationBase.meta
name
• name: undefined
| null
| RouteRecordName
Name of the matched record
Inherited from
_RouteLocationBase.name
params
• params: RouteParams
从path
中提取的解码参数的对象。
Inherited from
_RouteLocationBase.params
path
• path: string
Percentage encoded pathname section of the URL.
Inherited from
_RouteLocationBase.path
query
• query: LocationQuery
Object representation of the search
property of the current location.
Inherited from
_RouteLocationBase.query
redirectedFrom
• redirectedFrom: undefined
| RouteLocation
Contains the location we were initially trying to access before ending up on the current location.
Inherited from
_RouteLocationBase.redirectedFrom
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论