We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@files-submitted="filesAdd"
filesAdd(fileList){ console.log("2222222"); console.log(fileList); for(var f in fileList){ if(fileList[f].size > 5 * 1024){ this.$message({ message: '存在单文件5K以上文件,请重新选择文件!', type: 'error', duration: 2000 }); break; } } for(var n in fileList){ fileList[n].ignored = true; } }
还是可以继续上传
The text was updated successfully, but these errors were encountered:
目前只存在于对 file-added 的处理,暂时还没对 files-added 做处理。
这个我后续改下,如果着急的话,可以先用 file-added 处理
Sorry, something went wrong.
fix issue #20
9568d24
No branches or pull requests
@files-submitted="filesAdd"
filesAdd(fileList){
console.log("2222222");
console.log(fileList);
for(var f in fileList){
if(fileList[f].size > 5 * 1024){
this.$message({
message: '存在单文件5K以上文件,请重新选择文件!',
type: 'error',
duration: 2000
});
break;
}
}
for(var n in fileList){
fileList[n].ignored = true;
}
}
还是可以继续上传
The text was updated successfully, but these errors were encountered: