1.0.0 • Published 4 years ago
@uni/tab-bar v1.0.0
showTabBar
show tabBar 。
Support
Install
$ npm install @uni/tab-bar --save
or
$ npm install @uni/apis --save
Usage
import { showTabBar } from '@uni/tab-bar';
showTabBar();
You can also import from the big package:
import { tabBar } from '@uni/apis';
tabBar.showTabBar();
Method
showTabBar()
Arguments
Property | Type | Description | required | Default | Supported |
---|---|---|---|---|---|
options | object | ✔️ | - | - | |
options.animation | boolean | whether need animation | ✘ | false | |
options.success | Function | The callback function for a successful API call | ✘ | - | |
options.fail | Function | The callback function for a failed API call | ✘ | - | |
options.complete | Function | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |
hideTabBar
hide tabBar 。
Support
Install
$ npm install @uni/tab-bar --save
or
$ npm install @uni/apis --save
Usage
import { hideTabBar } from '@uni/tab-bar';
hideTabBar();
You can also import from the big package:
import { tabBar } from '@uni/apis';
tabBar.hideTabBar();
Method
hideTabBar()
Arguments
Property | Type | Description | required | Default | Supported |
---|---|---|---|---|---|
options | object | ✔️ | - | - | |
options.animation | boolean | whether need animation | ✘ | false | |
options.success | Function | The callback function for a successful API call | ✘ | - | |
options.fail | Function | The callback function for a failed API call | ✘ | - | |
options.complete | Function | The callback function used when the API call completed (always executed whether the call succeeds or fails) | ✘ | - |
1.0.0
4 years ago