@@ -22,8 +15,8 @@ import { ElProgress } from 'element-plus'
type TProps = {
percent: number
- text: string
- cancelText: string
+ text?: string
+ cancelText?: string
msg?: string
}
@@ -32,12 +25,17 @@ type TEmits = {
(event: 'cancel'): void
}
-const {percent, text, cancelText, msg} = defineProps
()
+const props = withDefaults(defineProps(), {
+ percent: 0,
+ text: '',
+ cancelText: '',
+ msg: ''
+})
const emit = defineEmits()
watch(
- () => percent,
+ () => props.percent,
(num) => {
if (num >= 100) {
setTimeout(() => {
diff --git a/src/views/Index.vue b/src/views/Index.vue
index 1bb67d1..d2c8a31 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -2,9 +2,9 @@
* @Author: ShawnPhang
* @Date: 2023-09-18 17:34:44
* @Description:
- * @LastEditors: Jeremy Yu
+ * @LastEditors: ShawnPhang
* @LastUpdateContent: Support typescript
- * @LastEditTime: 2024-02-25 14:51:00
+ * @LastEditTime: 2024-04-03 10:58:42
-->
@@ -45,6 +45,7 @@
({
// openDraw: false,
downloadPercent: 0, // 下载进度
downloadText: '',
+ downloadMsg: '',
isContinue: true,
APP_NAME: _config.APP_NAME,
showLineGuides: false,
@@ -217,9 +220,10 @@ function fixTopBarScroll() {
// console.log('click listener', e)
// }
-function optionsChange({ downloadPercent, downloadText }: { downloadPercent: number, downloadText: string }) {
+function optionsChange({ downloadPercent, downloadText, downloadMsg }: { downloadPercent: number, downloadText: string, downloadMsg?: string }) {
state.downloadPercent = downloadPercent
state.downloadText = downloadText
+ state.downloadMsg = downloadMsg
}
diff --git a/src/views/components/CopyRight.vue b/src/views/components/CopyRight.vue
index b3cbf67..c025136 100644
--- a/src/views/components/CopyRight.vue
+++ b/src/views/components/CopyRight.vue
@@ -2,8 +2,8 @@
* @Author: ShawnPhang
* @Date: 2022-03-25 15:19:02
* @Description: 版权声明
- * @LastEditors: ShawnPhang
- * @LastEditTime: 2023-08-08 10:09:59
+ * @LastEditors: ShawnPhang
+ * @LastEditTime: 2024-04-03 10:55:43
-->
@@ -16,7 +16,7 @@