navigator组件
属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| url | string | 当前小程序内的跳转链接 | ||
| open-type | string | navigate | 跳转方式 | |
| delta | number | 1 | 当 open-type 为 'navigateBack' 时有效,表示回退的层数 | |
| hover-class | string | navigator-hover | 指定点击时的样式类,当hover-class=none时,没有点击态效果 | |
| hover-stop-propagation | boolean | false | 指定是否阻止本节点的祖先节点出现点击态 | |
| hover-start-time | number | 50 | 按住后多久出现点击态,单位毫秒 | |
| hover-stay-time | number | 600 | 手指松开后点击态保留时间,单位毫秒 | |
| bindsuccess | eventhandle | 跳转小程序成功回调 | ||
| bindfail | eventhandle | 跳转小程序失败回调 | ||
| bindcomplete | eventhandle | 跳转小程序完成回调 |
值 | 说明 |
|---|---|
| navigate | 对应 xhs.navigateTo 的功能 |
| redirect | 对应 xhs.redirectTo 的功能 |
| switchTab | 对应 xhs.switchTab 的功能 |
| reLaunch | 对应 xhs.reLaunch 的功能 |
| navigateBack | 对应 xhs.navigateBack 的功能 |
| exit | 对应 xhs.exitMiniProgram 的功能 |
