@tplc/wot 1.0.5 → 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,27 @@
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
+
18
+ ### [1.0.6](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.5...v1.0.6) (2025-11-12)
19
+
20
+
21
+ ### ✨ Features | 新功能
22
+
23
+ * 优化动画 ([5f25096](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/5f25096abaea90f07141f7213fac04997686bd80))
24
+ * 改回mfit ([901781e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/901781ea64d44fcf23b6587a479f1321243ce3f4))
25
+
5
26
  ### [1.0.5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.4...v1.0.5) (2025-11-11)
6
27
 
7
28
  ### [1.0.4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v1.0.3...v1.0.4) (2025-11-11)
@@ -1,8 +1,9 @@
1
1
  <template>
2
- <view :class="rootClass" @click="handleClick" :style="rootStyle">
2
+ <view :class="rootClass" @click="handleClick" :style="rootStyle" class="relative">
3
3
  <image
4
4
  v-if="status !== 'success'"
5
5
  :class="`wd-img__image coverImg ${customImage}`"
6
+ class="z-1 absolute"
6
7
  :src="wrapPhoto({ photo: src, width: lazyPlaceWidth, type: 2 })"
7
8
  :mode="mode"
8
9
  :lazy-load="lazyLoad"
@@ -15,7 +16,7 @@
15
16
  @load="handleLoad"
16
17
  @error="handleError"
17
18
  :style="{
18
- display: status === 'success' ? 'block' : 'none',
19
+ // display: status === 'success' ? 'block' : 'none',
19
20
  objectFit: 'cover',
20
21
  }"
21
22
  />
@@ -27,9 +28,6 @@
27
28
  :lazy-load="lazyLoad"
28
29
  @load="handleLoad"
29
30
  @error="handleError"
30
- :style="{
31
- display: status === 'success' ? 'block' : 'none',
32
- }"
33
31
  />
34
32
  </view>
35
33
  </template>
@@ -113,16 +111,18 @@ function wrapPhoto({ photo, width = 100, type = 1 }: any) {
113
111
 
114
112
  const isctyun = photo?.indexOf('.ctyun') >= 0
115
113
  const sym = photo?.indexOf('?') > 0 ? '&' : '?'
114
+ // 是否是gif
115
+ const isGif = photo?.indexOf('.gif') >= 0
116
116
  if (isVideoUrl(photo)) {
117
117
  const suffix = isctyun
118
118
  ? `${sym}x-amz-process=video/snapshot,t_2000,w_${finalWidth},m_lfit`
119
- : `${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}`
120
120
  const url = `${photo}${suffix}`
121
121
  return url
122
122
  }
123
123
  const suffix = isctyun
124
124
  ? `${sym}x-amz-process=image/resize,w_${finalWidth},m_lfit`
125
- : `${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}`
126
126
  const url = `${photo}${suffix}`
127
127
  return url
128
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.5",
4
+ "version": "1.0.7",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",