diff --git a/uni_modules/uni-progress-notification/utssdk/interface.uts b/uni_modules/uni-progress-notification/utssdk/interface.uts deleted file mode 100644 index e0e4799ecf1ee027157f235fdcd40264a01f71bc..0000000000000000000000000000000000000000 --- a/uni_modules/uni-progress-notification/utssdk/interface.uts +++ /dev/null @@ -1,145 +0,0 @@ -export type uni = { - /** - * createNotificationProgress() - * @description - * 创建通知栏下载进度消息 - * @param {CreateNotificationProgressOptions} - * @return {void} - * @uniPlatform { - * "app": { - * "android": { - * "osVer": "4.4", - * "uniVer": "3.9+", - * "unixVer": "3.9+" - * }, - * "ios": { - * "osVer": "x", - * "uniVer": "x", - * "unixVer": "x" - * } - * } - * } - * @example - ```typescript - uni.createNotificationProgress({ - title: "正在下载升级包", - content: "进度 50%", - progress: 50, - onClick:()=>{ - console.log("正在下载"); - } - } - ``` - */ - createNotificationProgress : (options : CreateNotificationProgressOptions) => void, - /** - * finishNotificationProgress() - * @description - * 通知栏显示下载完成,并且传入点击通知栏消息的回调。 - * @param {FinishNotificationProgressOptions} - * @return {void} - * @uniPlatform { - * "app": { - * "android": { - * "osVer": "4.4", - * "uniVer": "3.9+", - * "unixVer": "3.9+" - * }, - * "ios": { - * "osVer": "x", - * "uniVer": "x", - * "unixVer": "x" - * } - * } - * } - * @example - ```typescript - uni.finishNotificationProgress({ - title: "安装升级包", - content: "下载完成。", - onClick: () => { - uni.installApk({ - filePath: e.tempFilePath, - complete(res) { - console.log(res); - } - }) - } - } - ``` - */ - finishNotificationProgress : (options: FinishNotificationProgressOptions) => void, - /** - * cancelNotificationProgress() - * @description - * 取消通知消息显示 - * @param {void} - * @return {void} - * @uniPlatform { - * "app": { - * "android": { - * "osVer": "4.4", - * "uniVer": "3.9+", - * "unixVer": "3.9+" - * }, - * "ios": { - * "osVer": "x", - * "uniVer": "x", - * "unixVer": "x" - * } - * } - * } - * @example - ```typescript - uni.cancelNotificationProgress() - ``` - */ - cancelNotificationProgress : () => void -} - -export type CreateNotificationProgressOptions = { - /** - * 通知标题 - * @defaultValue 应用名称 - */ - title ?: string | null - /** - * 通知内容 - */ - content : string, - /** - * 进度 - */ - progress : number, - /** - * 点击通知消息回调 - * @defaultValue null - */ - onClick? : (() => void) | null -} - - -export type FinishNotificationProgressOptions = { - /** - * 通知标题 - * @defaultValue 应用名称 - */ - title ?: string | null - /** - * 通知内容 - */ - content : string, - /** - * 点击通知消息回调 - */ - onClick : () => void -} - - -export type CreateNotificationProgress = (options : CreateNotificationProgressOptions) => void; - - -export type CancelNotificationProgress = () => void; - - -export type FinishNotificationProgress = (options: FinishNotificationProgressOptions) => void \ No newline at end of file diff --git a/uni_modules/uni-upgrade-center-app/changelog.md b/uni_modules/uni-upgrade-center-app/changelog.md index e2b235c3957da51eb8a79c188e2af6947356498a..ae79e92c2ac9ca3b0682cd5f5f18d0e94708652e 100644 --- a/uni_modules/uni-upgrade-center-app/changelog.md +++ b/uni_modules/uni-upgrade-center-app/changelog.md @@ -1,3 +1,6 @@ +## 0.7.5(2023-12-12) +- 新增 通知栏进度条使用 uts-progressNotification 插件 +- 新增 依赖 uni-installApk、uts-progressNotification。使用前要安装插件三方依赖 ## 0.7.4(2023-11-29) - 修复 uni-app-x 项目中由上版引发的无法升级的Bug ## 0.7.3(2023-11-27) diff --git a/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue b/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue index e16b5e793db736a67e987813a17e874199839035..ed0d1aa91abd3a29533ff341515a293fcc8b0faa 100644 --- a/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue +++ b/uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue @@ -62,6 +62,8 @@