uview-plus 3.4.23 → 3.4.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +13 -0
- package/components/u-upload/u-upload.vue +2 -5
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## 3.4.24(2025-04-25)
|
|
2
|
+
fix: 修复upload上传逻辑(感谢@semdy)
|
|
3
|
+
|
|
4
|
+
## 3.4.23(2025-04-24)
|
|
5
|
+
chore: 补全chooseFile TS类型(感谢@semdy)
|
|
6
|
+
|
|
7
|
+
feat: u-search组件的图标支持显示在右边(感谢@semdy)
|
|
8
|
+
|
|
9
|
+
chore: 修正chooseFile返回的数据TS类型(感谢@semdy)
|
|
10
|
+
|
|
11
|
+
fix: PR导致缺失name影响uplad自动上传扩展名
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
## 3.4.22(2025-04-22)
|
|
2
15
|
fix: 修复自动上传偶发的success被覆盖为uploading
|
|
3
16
|
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
beforeRead,
|
|
381
381
|
useBeforeRead,
|
|
382
382
|
} = this;
|
|
383
|
-
let res =
|
|
383
|
+
let res = file
|
|
384
384
|
// beforeRead是否为一个方法
|
|
385
385
|
if (test.func(beforeRead)) {
|
|
386
386
|
// 如果用户定义了此方法,则去执行此方法,并传入读取的文件回调
|
|
@@ -400,13 +400,10 @@
|
|
|
400
400
|
);
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
-
if (!res) {
|
|
404
|
-
return;
|
|
405
|
-
}
|
|
406
403
|
if (test.promise(res)) {
|
|
407
404
|
res.then((data) => this.onAfterRead(data || file));
|
|
408
405
|
} else {
|
|
409
|
-
this.onAfterRead(file);
|
|
406
|
+
this.onAfterRead(res || file);
|
|
410
407
|
}
|
|
411
408
|
},
|
|
412
409
|
getDetail(index) {
|
package/package.json
CHANGED