|
@ -5,6 +5,7 @@
|
|
|
v-bind="configs"
|
|
|
:action="imgUploadUrl"
|
|
|
:show-file-list="configs.multiple||false"
|
|
|
:on-exceed="handleExceed"
|
|
|
:on-success="afterUploadPic"
|
|
|
:on-remove="removePic"
|
|
|
:on-error="onError"
|
|
@ -105,6 +106,9 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
handleExceed(files, fileList) {
|
|
|
this.$message.warning(`只能上传${configs.limit}张图片`);
|
|
|
},
|
|
|
handlePictureCardPreview(file) {
|
|
|
if(this.configs.multiple){
|
|
|
this.dialogImageUrl = file.url;
|