Merge remote-tracking branch 'origin/master' into master
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -10,7 +10,6 @@ | ... | @@ -10,7 +10,6 @@ |
| 10 | :on-error="uploadError" | 10 | :on-error="uploadError" |
| 11 | :show-file-list="false" | 11 | :show-file-list="false" |
| 12 | multiple | 12 | multiple |
| 13 | :limit="3" | ||
| 14 | :on-exceed="handleExceed" | 13 | :on-exceed="handleExceed" |
| 15 | > | 14 | > |
| 16 | <el-button size="small" type="primary">上传</el-button> | 15 | <el-button size="small" type="primary">上传</el-button> |
| ... | @@ -157,7 +156,8 @@ | ... | @@ -157,7 +156,8 @@ |
| 157 | }, | 156 | }, |
| 158 | handleExceed(files, fileList) { | 157 | handleExceed(files, fileList) { |
| 159 | console.log(fileList) | 158 | console.log(fileList) |
| 160 | this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); | 159 | // this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); |
| 160 | this.$message.warning("上传失败") | ||
| 161 | }, | 161 | }, |
| 162 | beforeRemove(file, fileList) { | 162 | beforeRemove(file, fileList) { |
| 163 | return this.$confirm(`确定移除 ${ file.name }?`); | 163 | return this.$confirm(`确定移除 ${ file.name }?`); | ... | ... |
-
Please register or sign in to post a comment