diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 29db740..c7bd209 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -31,8 +31,23 @@ 的文件 - - + + + + + + + + + + {{ dialogImageUrl }} + 复制 + + @@ -45,27 +60,27 @@ const props = defineProps({ // 图片数量限制 limit: { type: Number, - default: 5, + default: 5 }, // 大小限制(MB) fileSize: { type: Number, - default: 5, + default: 5 }, // 文件类型, 例如['png', 'jpg', 'jpeg'] fileType: { type: Array, - default: () => ['png', 'jpg', 'jpeg'], + default: () => ['png', 'jpg', 'jpeg'] }, // 是否显示提示 isShowTip: { type: Boolean, - default: true, + default: true }, // 上传携带的参数 data: { - type: Object, - }, + type: Object + } }) const { proxy } = getCurrentInstance() @@ -102,7 +117,7 @@ watch( return [] } }, - { deep: true, immediate: true }, + { deep: true, immediate: true } ) // 删除图片 @@ -187,4 +202,7 @@ function listToString(list, separator) { } return strs != '' ? strs.substr(0, strs.length - 1) : '' } +function copySuccess() { + proxy.$modal.msgSuccess('复制成功') +}