-
+
+ ref="cropperRef"
+ :img="options.img"
+ :outputSize="options.outputSize"
+ :outputType="options.outputType"
+ :info="options.info"
+ :canScale="options.canScale"
+ :autoCrop="options.autoCrop"
+ :autoCropWidth="options.autoCropWidth"
+ :autoCropHeight="options.autoCropHeight"
+ :fixed="options.fixed"
+ :maximgSize="options.maximgSize"
+ :fixedBox="options.fixedBox"
+ :enlarge="options.enlarge"
+ :fixedNumber="options.fixedNumber"
+ />
-
-
+
+
+
-
@@ -44,154 +44,154 @@
diff --git a/src/components/Upload/file.vue b/src/components/Upload/file.vue
index ab38d26..3d8b577 100644
--- a/src/components/Upload/file.vue
+++ b/src/components/Upload/file.vue
@@ -1,28 +1,28 @@
点击上传
@@ -30,197 +30,201 @@
-
-
+
+
- {{loading?'上传中':(fileList.length>0?'上传成功':'点击或将文件拖拽到这里上传')}}
+ {{
+ loading ? '上传中' : fileList.length > 0 ? '上传成功' : '点击或将文件拖拽到这里上传'
+ }}
支持扩展名:{{ props.fileType }}
- 最多上传{{props.limit}}个文件
+ 最多上传{{ props.limit }}个文件
diff --git a/src/components/Upload/src/BasicUpload.vue b/src/components/Upload/src/BasicUpload.vue
index 65d48cf..11f3099 100644
--- a/src/components/Upload/src/BasicUpload.vue
+++ b/src/components/Upload/src/BasicUpload.vue
@@ -70,7 +70,7 @@
const showModal = ref(false);
const previewUrl = ref('');
- const fileList = computed(() => {
+ const fileList = computed(() => {
return props.list;
});