跳到主要内容
版本:v8

导航链接组件

导航链接用于跳转到指定组件。可以通过 forward(前进)、back(后退)或作为 root(根)组件进行导航。

它以元素形式封装了在导航控制器上调用 push()pop()setRoot() 方法的功能。

更多信息请参阅 nav 文档。

属性

component

DescriptionComponent to navigate to. Only used if the routerDirection is "forward" or "root".
Attributecomponent
TypeFunction | HTMLElement | ViewController | null | string | undefined
Defaultundefined

componentProps

DescriptionData you want to pass to the component as props. Only used if the "routerDirection" is "forward" or "root".
Attributeundefined
TypeT | undefined
Defaultundefined

routerAnimation

DescriptionThe transition animation when navigating to another page.
Attributeundefined
Type((baseEl: any, opts?: any) => Animation) | undefined
Defaultundefined

routerDirection

DescriptionThe transition direction when navigating to another page.
Attributerouter-direction
Type"back" | "forward" | "root"
Default'forward'

事件

No events available for this component.

方法

No public methods available for this component.

CSS 影子部件

No CSS shadow parts available for this component.

CSS 自定义属性

No CSS custom properties available for this component.

插槽

No slots available for this component.