@tplc/wot 0.1.100 → 1.0.1
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 +19 -0
- package/components/wd-img/wd-img.vue +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.1](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.45...v1.0.1) (2025-11-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 图片自适应 ([a3f929c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a3f929c2145e6a965a8ffaa23a61479f4676f6a2))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
14
|
+
|
|
15
|
+
* **release:** 0.2.1 ([94ae900](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/94ae90045996bf36e0705f430835f2363f00b2d0))
|
|
16
|
+
|
|
17
|
+
### [0.2.1](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.45...v0.2.1) (2025-11-10)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### ✨ Features | 新功能
|
|
21
|
+
|
|
22
|
+
* 图片自适应 ([a3f929c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a3f929c2145e6a965a8ffaa23a61479f4676f6a2))
|
|
23
|
+
|
|
5
24
|
### [0.1.100](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.1.99...v0.1.100) (2025-11-08)
|
|
6
25
|
|
|
7
26
|
### [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 * 2
|
|
101
101
|
} else if (width.includes('px')) {
|
|
102
|
-
finalWidth = imgWidth
|
|
102
|
+
finalWidth = imgWidth
|
|
103
103
|
} else if (width.includes('%')) {
|
|
104
|
-
finalWidth =
|
|
104
|
+
finalWidth = 1125
|
|
105
105
|
}
|
|
106
106
|
} else {
|
|
107
|
-
finalWidth = width
|
|
107
|
+
finalWidth = width
|
|
108
108
|
}
|
|
109
|
-
if (finalWidth >
|
|
110
|
-
finalWidth =
|
|
109
|
+
if (finalWidth > 1125) {
|
|
110
|
+
finalWidth = 1125
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|