ion-nav-link
导航链接用于跳转到指定的组件。可以通过前进、后退或设置为根组件的方式进行导航。
它是调用导航控制器上 push()、pop() 和 setRoot() 方法的元素形式。
更多信息请参阅 nav 文档。
属性
component
| Description | Component to navigate to. Only used if the routerDirection is "forward" or "root". |
| Attribute | component |
| Type | Function | HTMLElement | ViewController | null | string | undefined |
| Default | undefined |
componentProps
| Description | Data you want to pass to the component as props. Only used if the "routerDirection" is "forward" or "root". |
| Attribute | undefined |
| Type | undefined | { [key: string]: any; } |
| Default | undefined |
routerAnimation
| Description | The transition animation when navigating to another page. |
| Attribute | undefined |
| Type | ((baseEl: any, opts?: any) => Animation) | undefined |
| Default | undefined |
routerDirection
| Description | The transition direction when navigating to another page. |
| Attribute | router-direction |
| Type | "back" | "forward" | "root" |
| Default | 'forward' |
事件
No events available for this component.
方法
No public methods available for this component.
CSS Shadow Parts
No CSS shadow parts available for this component.
CSS 自定义属性
No CSS custom properties available for this component.
插槽
No slots available for this component.