UNPKG

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