跳到主要内容
版本:v6

ion-nav-link

导航链接用于导航到指定组件。可以通过 forward(前进)、back(返回)或作为 root(根)组件来导航到该组件。

它是在导航控制器上调用 push()pop()setRoot() 方法的元素形式。

更多信息请参阅 nav 文档。

属性

component

说明Component to navigate to. Only used if the routerDirection is "forward" or "root".
属性component
类型Function | HTMLElement | ViewController | null | string | undefined
默认值undefined

componentProps

说明Data you want to pass to the component as props. Only used if the "routerDirection" is "forward" or "root".
属性undefined
类型undefined | { [key: string]: any; }
默认值undefined

routerAnimation

说明The transition animation when navigating to another page.
属性undefined
类型((baseEl: any, opts?: any) => Animation) | undefined
默认值undefined

routerDirection

说明The transition direction when navigating to another page.
属性router-direction
类型"back" | "forward" | "root"
默认值'forward'

事件

该组件没有可用的事件。

方法

该组件没有可用的公共方法。

CSS 阴影部分

该组件没有可用的 CSS 阴影部分。

CSS 自定义属性

该组件没有可用的 CSS 自定义属性。

插槽

该组件没有可用的插槽。