提交 bc048e16 编写于 作者: Q qiang

feat: app-plus tab-bar

feat: app-plus tab-bar
上级 ebb73f88
import {
invokeMethod
} from '../../platform'
export function removeTabBarBadge ({
index
}) {
return invokeMethod('setTabBarBadge', {
index,
type: 'none'
})
}
export function showTabBarRedDot ({
index
}) {
return invokeMethod('setTabBarBadge', {
index,
type: 'redDot'
})
}
export const hideTabBarRedDot = removeTabBarBadge
......@@ -7,7 +7,7 @@ import tabBar from '../../framework/tab-bar'
export function setTabBarBadge ({
index,
text,
type
type = 'text'
}) {
tabBar.setTabBarBadge(type, index, text)
return {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册