@tplc/business 0.1.6 → 0.1.10
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 +54 -0
- package/components/lcb-nav/lcb-nav.vue +1 -1
- package/hooks/useUpload.ts +3 -6
- package/package.json +1 -1
- package/types/hooks/useUpload.d.ts +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,60 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.10](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.10) (2024-10-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
|
|
11
|
+
* 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
|
|
12
|
+
* 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
16
|
+
|
|
17
|
+
* **release:** 0.1.7 ([69fbf39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/69fbf39f9e9f1c7b2daf25aa81d7e508a530fa2b))
|
|
18
|
+
* **release:** 0.1.8 ([0cd2b98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0cd2b98488ea39de407df1badedf2554f94190f1))
|
|
19
|
+
* **release:** 0.1.9 ([b1dd896](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b1dd896c4acc76bfc370b39c7d0a24eb729182eb))
|
|
20
|
+
|
|
21
|
+
### [0.1.9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.9) (2024-10-26)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### ✨ Features | 新功能
|
|
25
|
+
|
|
26
|
+
* nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
|
|
27
|
+
* 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
|
|
28
|
+
* 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
32
|
+
|
|
33
|
+
* **release:** 0.1.7 ([69fbf39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/69fbf39f9e9f1c7b2daf25aa81d7e508a530fa2b))
|
|
34
|
+
* **release:** 0.1.8 ([0cd2b98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0cd2b98488ea39de407df1badedf2554f94190f1))
|
|
35
|
+
|
|
36
|
+
### [0.1.8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.8) (2024-10-26)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### ✨ Features | 新功能
|
|
40
|
+
|
|
41
|
+
* nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
|
|
42
|
+
* 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
|
|
43
|
+
* 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
47
|
+
|
|
48
|
+
* **release:** 0.1.7 ([69fbf39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/69fbf39f9e9f1c7b2daf25aa81d7e508a530fa2b))
|
|
49
|
+
|
|
50
|
+
### [0.1.7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.7) (2024-10-26)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### ✨ Features | 新功能
|
|
54
|
+
|
|
55
|
+
* nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
|
|
56
|
+
* 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
|
|
57
|
+
* 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
|
|
58
|
+
|
|
5
59
|
### [0.1.6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.48...v0.1.6) (2024-10-26)
|
|
6
60
|
|
|
7
61
|
|
package/hooks/useUpload.ts
CHANGED
|
@@ -28,8 +28,7 @@ export default function useUpload(onSuccess?: (url: string) => void) {
|
|
|
28
28
|
count: 1,
|
|
29
29
|
success: (res) => {
|
|
30
30
|
const name = res.tempFiles[0].name
|
|
31
|
-
|
|
32
|
-
uploadFile({ data, name, file, onSuccess })
|
|
31
|
+
uploadFile({ data, name, filePath: res.tempFilePaths[0], onSuccess })
|
|
33
32
|
},
|
|
34
33
|
fail: (err) => {
|
|
35
34
|
console.error('uni.chooseImage err->', err)
|
|
@@ -43,13 +42,11 @@ export default function useUpload(onSuccess?: (url: string) => void) {
|
|
|
43
42
|
|
|
44
43
|
export async function uploadFile({
|
|
45
44
|
filePath,
|
|
46
|
-
file,
|
|
47
45
|
data,
|
|
48
46
|
name,
|
|
49
47
|
onSuccess,
|
|
50
48
|
}: {
|
|
51
|
-
filePath
|
|
52
|
-
file?: File
|
|
49
|
+
filePath: string
|
|
53
50
|
data?: Ref<string>
|
|
54
51
|
name: string
|
|
55
52
|
onSuccess?: (url: string) => void
|
|
@@ -86,7 +83,7 @@ export async function uploadFile({
|
|
|
86
83
|
})
|
|
87
84
|
}
|
|
88
85
|
// #ifdef H5
|
|
89
|
-
fun(
|
|
86
|
+
fun(await (await fetch(filePath)).arrayBuffer())
|
|
90
87
|
// #endif
|
|
91
88
|
|
|
92
89
|
// #ifndef H5
|
package/package.json
CHANGED
|
@@ -10,13 +10,11 @@ export default function useUpload(onSuccess?: (url: string) => void): {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function uploadFile({
|
|
12
12
|
filePath,
|
|
13
|
-
file,
|
|
14
13
|
data,
|
|
15
14
|
name,
|
|
16
15
|
onSuccess,
|
|
17
16
|
}: {
|
|
18
|
-
filePath
|
|
19
|
-
file?: File
|
|
17
|
+
filePath: string
|
|
20
18
|
data?: Ref<string>
|
|
21
19
|
name: string
|
|
22
20
|
onSuccess?: (url: string) => void
|