赞
踩
Ba-Shortcut-Badge
在 script
中引入组件
const shortCutBadge = uni.requireNativePlugin('Ba-Shortcut-Badge')
在 script
中调用
methods: {
setCount() {//手动设置未读角标数
shortCutBadge.applyCount({
'badgeCount': 10
});
},
addCount() {//自动叠加
shortCutBadge.applyCount();
},
clearCount() {//清空
shortCutBadge.clearCount();
},
}
应用未读角标插件 Ba-Shortcut-Badge (文档)
动态修改状态栏、导航栏背景色、字体颜色插件 Ba-AppBar(文档)
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。