最近使用antdesign对vue项目进行开发
上传图片使用的是atd的upload组件
选择图片上传后,进度条和“图片上传中”出现,如图:
原因是因为fileList内的percent属性和status搞出来的
可以先log一下fileList
我log出来发现我的percent为0,status为'uploading'
percent:进度条的进度(1-100)
status:进度条的状态(uploading表示上传中,done表示完成)
如果需要修改的话upload这个问题可以按照这种格式修改
this.fileList[0].percent = 100
this.fileList[0].status = 'done'