更新记录
1.0.1(2025-04-21)
- 修复鸿蒙打包错误问题
1.0.0(2025-03-18)
- UxFrame Android下载进度通知插件
平台兼容性
uni-app
Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
√ |
√ |
- |
- |
- |
- |
4.4 |
- |
- |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
uni-app x
Chrome |
Safari |
Android |
iOS |
鸿蒙 |
微信小程序 |
- |
- |
5.0 |
- |
- |
- |
UxFrame 通知栏下载进度SDK 1.0.1
特别说明
如果您已经购买了UxFrame 低代码高性能UI框架, 则无需再次购买本插件,请点击上方进入交流群
联系我免费获取离线版插件!
使用说明
import * as notification from "@/uni_modules/ux-notification"
const progress = ref(0)
let t = 0
function cancel() {
uni.showModal({
title: '是否取消下载?',
cancelText: '否',
confirmText: '是',
success: res => {
if (res.confirm) {
clearInterval(t)
notification.cancelNotificationProgress()
}
}
});
}
function start() {
t = setInterval(() => {
if(progress.value >= 100) {
clearInterval(t)
notification.finishNotificationProgress({
title: "安装升级包",
content: "下载完成",
onClick() { }
} as notification.UxFinishNotificationProgressOptions)
return
}
progress.value += 1
notification.createNotificationProgress({
title: "升级中心正在下载安装包……",
content: `${progress.value}%`,
progress: progress.value,
onClick: () => {
cancel()
}
} as notification.UxCreateNotificationProgressOptions)
}, 1000)
}
文档教程 ⬇️
https://www.uxframe.cn