f326cbb9 by 杨威

Merge remote-tracking branch 'origin/master' into master

2 parents fc890241 2b007bcd
...@@ -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 }?`);
......