UNPKG

997 BTypeScriptView Raw
1import Taro, { AppConfig } from '@tarojs/api';
2export declare function initTabBarApis(config?: AppConfig): void;
3/**
4 * 显示 tabBar 某一项的右上角的红点
5 */
6export declare const showTabBarRedDot: typeof Taro.showTabBarRedDot;
7/**
8 * 显示 tabBar
9 */
10export declare const showTabBar: typeof Taro.showTabBar;
11/**
12 * 动态设置 tabBar 的整体样式
13 */
14export declare const setTabBarStyle: typeof Taro.setTabBarStyle;
15/**
16 * 动态设置 tabBar 某一项的内容
17 */
18export declare const setTabBarItem: typeof Taro.setTabBarItem;
19/**
20 * 为 tabBar 某一项的右上角添加文本
21 */
22export declare const setTabBarBadge: typeof Taro.setTabBarBadge;
23/**
24 * 移除 tabBar 某一项右上角的文本
25 */
26export declare const removeTabBarBadge: typeof Taro.removeTabBarBadge;
27/**
28 * 隐藏 tabBar 某一项的右上角的红点
29 */
30export declare const hideTabBarRedDot: typeof Taro.hideTabBarRedDot;
31/**
32 * 隐藏 tabBar
33 */
34export declare const hideTabBar: typeof Taro.hideTabBar;