<el-upload action="false"
:disabled="uploading"
ref="uploadRef"
class="upload-demo"
:before-upload="beforeUploadVdo"
:limit="5"
:on-exceed="handleExceed5New"
:on-remove="handleRemove"
:http-request="httpRequest"
:file-list="fileList">
<el-button :loading="uploading" size="small" type="primary">点击上传</el-button>
<span class="star"></span>
</el-upload>
//清空文件
this.$refs.uploadRef.value.clearFiles()
//删除单个文件
const { uploadFiles } = this.$refs.uploadRef
if (uploadFiles && uploadFiles.length) {
uploadFiles.splice(uploadFiles.length - 1, 1)
}