fix:修改提示信息进度条样式

This commit is contained in:
zyh
2022-08-24 16:43:55 +08:00
parent 271528ca35
commit 5e93b4dd75
4 changed files with 20 additions and 16 deletions

View File

@@ -82,7 +82,7 @@ export default {
error: '#FBBAAF'
},
// 进度条宽度
messageWidth: 0
messageWidth: 100
}
},
@@ -129,8 +129,8 @@ export default {
// 开启进度条定时器
const part = 100 / (this.duration / 10)
this.worker = createWorker(() => {
this.messageWidth += part
if (this.messageWidth > 100) {
this.messageWidth -= part
if (this.messageWidth <= 0) {
this.clearTimer()
if (!this.closed) {
this.close()