@tplc/wot 1.0.1 → 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 +23 -0
- package/components/wd-img/wd-img.vue +4 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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
|
+
|
|
5
28
|
### [1.0.1](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.45...v1.0.1) (2025-11-10)
|
|
6
29
|
|
|
7
30
|
|
|
@@ -97,14 +97,14 @@ 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 * 2
|
|
101
|
-
} else if (width.includes('px')) {
|
|
102
100
|
finalWidth = imgWidth
|
|
101
|
+
} else if (width.includes('px')) {
|
|
102
|
+
finalWidth = imgWidth * 2
|
|
103
103
|
} else if (width.includes('%')) {
|
|
104
104
|
finalWidth = 1125
|
|
105
105
|
}
|
|
106
106
|
} else {
|
|
107
|
-
finalWidth = width
|
|
107
|
+
finalWidth = width * 2
|
|
108
108
|
}
|
|
109
109
|
if (finalWidth > 1125) {
|
|
110
110
|
finalWidth = 1125
|
|
@@ -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
|
}
|