@tplc/wot 0.1.100 → 1.0.2
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 +42 -0
- package/components/wd-img/wd-img.vue +7 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,48 @@
|
|
|
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
|
+
### [1.0.2](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.42...v1.0.2) (2025-11-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.1.100 ([6f342cc](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/6f342cc867272b1650814eb8d3fcf96f8918d6d5))
|
|
11
|
+
* **release:** 0.1.99 ([13aae63](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/13aae63067909d3538e999a5a46c025fb8bccd43))
|
|
12
|
+
* **release:** 0.2.1 ([94ae900](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/94ae90045996bf36e0705f430835f2363f00b2d0))
|
|
13
|
+
* **release:** 0.5.43 ([85f305c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/85f305c6b6cf19e70007c6d352719fc673a118d8))
|
|
14
|
+
* **release:** 0.5.44 ([815d9b5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/815d9b5b73ca55e4afc77d812c978ea964cf7e04))
|
|
15
|
+
* **release:** 0.5.45 ([25095f6](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/25095f6cf26a1d6c89705109a5edb8686b30c84f))
|
|
16
|
+
* **release:** 1.0.1 ([410416f](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/410416f3187ee77a0b9fb6531faadc3982e152ad))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### ✨ Features | 新功能
|
|
20
|
+
|
|
21
|
+
* 优化样式 ([0a1bfce](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0a1bfce8ae529647eeadcc5188e9218dffb1d051))
|
|
22
|
+
* 修改lcb-custom-content ([ad699d5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/ad699d5bba4ee0ad9f0c66be05f720fa8f2ebb9f))
|
|
23
|
+
* 图片自适应 ([a3f929c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a3f929c2145e6a965a8ffaa23a61479f4676f6a2))
|
|
24
|
+
* 更新wd-img 尺寸判断 ([53bbbf5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/53bbbf5290e13aed4539228e26f6c43bf9713d0b))
|
|
25
|
+
* 调整依赖 ([e468622](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e468622964f13c5b50d6ee3e7a5c8d39a94bc65f))
|
|
26
|
+
* 调整图片尺寸webp ([159c460](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/159c460ab97bcb91093d1ee3f5f3e437325fb9fb))
|
|
27
|
+
|
|
28
|
+
### [1.0.1](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.45...v1.0.1) (2025-11-10)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### ✨ Features | 新功能
|
|
32
|
+
|
|
33
|
+
* 图片自适应 ([a3f929c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a3f929c2145e6a965a8ffaa23a61479f4676f6a2))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
37
|
+
|
|
38
|
+
* **release:** 0.2.1 ([94ae900](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/94ae90045996bf36e0705f430835f2363f00b2d0))
|
|
39
|
+
|
|
40
|
+
### [0.2.1](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.45...v0.2.1) (2025-11-10)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### ✨ Features | 新功能
|
|
44
|
+
|
|
45
|
+
* 图片自适应 ([a3f929c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a3f929c2145e6a965a8ffaa23a61479f4676f6a2))
|
|
46
|
+
|
|
5
47
|
### [0.1.100](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.1.99...v0.1.100) (2025-11-08)
|
|
6
48
|
|
|
7
49
|
### [0.1.99](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.41...v0.1.99) (2025-11-08)
|
|
@@ -97,17 +97,17 @@ function wrapPhoto({ photo, width = 100, type = 1 }: any) {
|
|
|
97
97
|
if (typeof width === 'string') {
|
|
98
98
|
const imgWidth = parseInt(width.replace('rpx', ''))
|
|
99
99
|
if (width.includes('rpx')) {
|
|
100
|
-
finalWidth = imgWidth
|
|
100
|
+
finalWidth = imgWidth
|
|
101
101
|
} else if (width.includes('px')) {
|
|
102
|
-
finalWidth = imgWidth *
|
|
102
|
+
finalWidth = imgWidth * 2
|
|
103
103
|
} else if (width.includes('%')) {
|
|
104
|
-
finalWidth =
|
|
104
|
+
finalWidth = 1125
|
|
105
105
|
}
|
|
106
106
|
} else {
|
|
107
|
-
finalWidth = width *
|
|
107
|
+
finalWidth = width * 2
|
|
108
108
|
}
|
|
109
|
-
if (finalWidth >
|
|
110
|
-
finalWidth =
|
|
109
|
+
if (finalWidth > 1125) {
|
|
110
|
+
finalWidth = 1125
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -118,12 +118,11 @@ function wrapPhoto({ photo, width = 100, type = 1 }: any) {
|
|
|
118
118
|
? `${sym}x-amz-process=video/snapshot,t_2000,w_${finalWidth},m_lfit`
|
|
119
119
|
: `${sym}x-oss-process=video/snapshot,t_2000,w_${finalWidth}/format,webp&imageView2/2/w/${finalWidth}`
|
|
120
120
|
const url = `${photo}${suffix}`
|
|
121
|
-
console.log(url, 'url')
|
|
122
121
|
return url
|
|
123
122
|
}
|
|
124
123
|
const suffix = isctyun
|
|
125
124
|
? `${sym}x-amz-process=image/resize,w_${finalWidth},m_lfit`
|
|
126
|
-
: `${sym}x-oss-process=image/resize,
|
|
125
|
+
: `${sym}x-oss-process=image/resize,m_fill,w_${finalWidth}/format,webp&imageView2/2/w/${finalWidth}`
|
|
127
126
|
const url = `${photo}${suffix}`
|
|
128
127
|
return url
|
|
129
128
|
}
|