基于vue+element-ui实现上传进度条
目录
基于el-upload组件实现进度条的编写
后台进度前台进度条显示
基于el-upload组件实现进度条的编写
①编写文件上传时的钩子函数
uploadProgress(event,file,fileList){
let _self = this;
if(event.lengthComputable){
let val = (event.loaded / event.total * 100 ).toFixed(0..
原创
2022-04-07 19:00:27 ·
6464 阅读 ·
0 评论