1、upload中:on-progress="uploadVideoProcess"
uploadVideoProcess(event) {
this.percent = Math.floor(event.percent)//percent进度
this.openFullScreen()
this.loading.setText(`上传中,请稍后${this.percent}`)//动态修改load中的文字
},
openFullScreen() {
this.loading = this.$loading({
lock: true,
扫描二维码关注公众号,回复:
14615449 查看本文章
text: `上传中,请稍后${this.percent}`,
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
}