1.2.1 • Published 3 years ago
universal-navigate v1.2.1
universal-navigate
Route navigation capability implementation.
Support
Install
$ npm install universal-navigate --save
Usage
import Navigate from 'universal-navigate';
Navigate.push({
url: 'https://www.taobao.com/',
animated: true // Only supported in weex
}).then(() => {
});
Navigate.pop({
animated: false // Only supported in weex
}).then(() => {
});
Navigate.go({
step: -1,
animated: false // Only supported in weex
}).then(() => {
});
Methods
push(options)
Arguments
Property | Type | Description | required | Default | Supported |
---|---|---|---|---|---|
options | object | Push function arguments | true | - | |
options.url | string | The page URL. | true | - | |
options.animated | boolean | Support only in weex, whether animated effects are required when pages are pressed | false | true |
pop(options)
Arguments
Property | Type | Description | required | Default | Supported |
---|---|---|---|---|---|
options | object | Pop function arguments | false | - | |
options.animated | boolean | Support only in weex, whether animated effects are required when pages are pressed | false | true |
go(options)
Arguments
Property | Type | Description | required | Default | Supported |
---|---|---|---|---|---|
options | object | Go function arguments | true | - | |
options.step | number | The number of forward steps is positive and only supports the web, and the number of backward steps is negative. | true | - | |
options.animated | boolean | Support only in weex, whether animated effects are required when pages are pressed | false | true |
2.0.0-beta1
3 years ago
2.0.0-beta
3 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.0
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.1-beta.2
5 years ago
1.0.1-beta.1
5 years ago
1.0.0
5 years ago
1.0.0-beta.2
5 years ago
1.0.0-beta.1
5 years ago