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 |
| 类型 | T | undefined |
| 默认值 | 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 Shadow Parts
该组件没有可用的 CSS 阴影部分。
CSS 自定义属性
该组件没有可用的 CSS 自定义属性。
插槽
该组件没有可用的插槽。