@tplc/wot 1.0.6 → 1.0.7

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 CHANGED
@@ -2,6 +2,19 @@
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.7](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.53...v1.0.7) (2025-11-21)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * 图片版本 ([4ec8bc2](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/4ec8bc20925733debdc1911a5dde272eab8b8913))
11
+
12
+
13
+ ### ✨ Features | 新功能
14
+
15
+ * map ([49b348b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/49b348b1e537c77f8efd2e07866f5958fbef5c72))
16
+ * 修改数据 ([0b3c765](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0b3c76502422df7f460dce3cc68c20d2496c8461))
17
+
5
18
  ### [1.0.6](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.5...v1.0.6) (2025-11-12)
6
19
 
7
20
 
@@ -111,16 +111,18 @@ function wrapPhoto({ photo, width = 100, type = 1 }: any) {
111
111
 
112
112
  const isctyun = photo?.indexOf('.ctyun') >= 0
113
113
  const sym = photo?.indexOf('?') > 0 ? '&' : '?'
114
+ // 是否是gif
115
+ const isGif = photo?.indexOf('.gif') >= 0
114
116
  if (isVideoUrl(photo)) {
115
117
  const suffix = isctyun
116
118
  ? `${sym}x-amz-process=video/snapshot,t_2000,w_${finalWidth},m_lfit`
117
- : `${sym}x-oss-process=video/snapshot,t_2000,w_${finalWidth}/format,webp&imageView2/2/w/${finalWidth}`
119
+ : `${sym}x-oss-process=video/snapshot,t_2000,w_${finalWidth}${isGif ? '' : '/format,webp'}&imageView2/2/w/${finalWidth}`
118
120
  const url = `${photo}${suffix}`
119
121
  return url
120
122
  }
121
123
  const suffix = isctyun
122
124
  ? `${sym}x-amz-process=image/resize,w_${finalWidth},m_lfit`
123
- : `${sym}x-oss-process=image/resize,m_mfit,w_${finalWidth}/format,webp&imageView2/2/w/${finalWidth}`
125
+ : `${sym}x-oss-process=image/resize,m_mfit,w_${finalWidth}${isGif ? '' : '/format,webp'}&imageView2/2/w/${finalWidth}`
124
126
  const url = `${photo}${suffix}`
125
127
  return url
126
128
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",