diff --git a/src/components/jero/JImageUpload.vue b/src/components/jero/JImageUpload.vue index 77e6667..cdafac2 100644 --- a/src/components/jero/JImageUpload.vue +++ b/src/components/jero/JImageUpload.vue @@ -18,7 +18,7 @@ @preview="handlePreview" :class="!isMultiple?'imgupload':''">
- +
@@ -215,6 +215,13 @@ this.handlePathChange() } }, + // 图片点击预览 + clickFunc() { + if (!this.disabled) return + if (this.fileList.length > 0) { + this.handlePreview(this.fileList[0]) + } + }, // 预览 handlePreview(file) { if (file && file.url) {