navigation components
navigation components introductions
| component | Introductions | Minimum version |
|---|---|---|
| navigator | Page link. | 1.0.0 |
| functional-page-navigator | Valid only in plug-ins for jumping to plug-in feature pages. | Not supported |
navigator
| attribute | type | Default value | Required | Introductions | Minimum version |
|---|---|---|---|---|---|
| url | string | no | Jump links within the current phizclip | ||
| open-type | navigate | no | Jump mode | ||
| hover-class | string | navigator-hover | no | Specifies the style class at click, whenhover-class="none"There is no click state effect | |
| hover-stay-time | number | 600 | no | Click hold time after finger release, in milliseconds | |
| delta | string | 1 | no | when open-type for 'navigateBack' Is valid for the number of levels of fallback | 3.0.1 |
| target | string | no | On which target to jump, default current phizclip | 3.0.1 | |
| app-id | string | no | when target="miniProgram"The phizclip that you want to open appId | 3.0.1 | |
| path | string | no | when target="miniProgram"Open the page path, if empty then open the home page | 3.0.1 | |
| extraData | object | no | when target="miniProgram"Data that needs to be passed to the target phizclip, which is available in the App.onLaunch(),App.onShow() Get this data from. | 3.0.1 |
open-type Legal value
| value | Introductions | Minimum version |
|---|---|---|
| navigate | Corresponding pz.navigateTo or pz.navigateToMiniProgram Function | |
| redirect | Corresponding pz.redirectTo Function | |
| switchTab | Corresponding pz.switchTab Function | |
| reLaunch | Corresponding pz.reLaunch Function | |
| navigateBack | Corresponding pz.reLaunch Function | |
| exit | Exit the phizclip,target="miniProgram"Effective |