diff --git a/src/components/Form/src/components/Upload.vue b/src/components/Form/src/components/Upload.vue
index 9bb933d..a225bd6 100644
--- a/src/components/Form/src/components/Upload.vue
+++ b/src/components/Form/src/components/Upload.vue
@@ -69,9 +69,9 @@
点击上传
-
+
@@ -213,10 +213,11 @@
x.status = 'done'; //没有则不会展示下载按钮
x.url = x.fileUrl;
x.thumbUrl = x.thUrl;
+ x.fileSize = x.fileSize
});
emit('update:value', folderId.value);
- emit('change');
+ emit('change', fileList.value);
loading.value = false;
} catch (error) {
console.error(error);
@@ -379,6 +380,12 @@
downloadByUrl({ url: res.url, fileName: res.name || 'files.zip' });
}
}
+ function getValue () {
+ return fileList.value
+ }
+ defineExpose({
+ getValue
+ });