API 文档 / RouterLinkProps
接口: RouterLinkProps
继承关系
RouterLinkOptions↳
RouterLinkProps
属性
activeClass
• 可选 activeClass: string
当链接处于活动状态时应用的类
ariaCurrentValue
• 可选 ariaCurrentValue: "time" | "location" | "page" | "step" | "date" | "true" | "false"
当链接处于精确活动状态时传递给属性 aria-current 的值。
默认值
'page'
custom
• 可选 custom: boolean
RouterLink 是否不应将其内容包装在 a 标签中。在使用 v-slot 创建自定义 RouterLink 时很有用
exactActiveClass
• 可选 exactActiveClass: string
当链接处于精确活动状态时应用的类
replace
• 可选 replace: boolean
调用 router.replace 而不是 router.push。
继承自
RouterLinkOptions.replace
to
• to: string | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric
单击链接时应导航到的路由位置。
继承自
RouterLinkOptions.to