uview-plus 3.4.47 → 3.4.48

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
@@ -1,3 +1,8 @@
1
+ ## 3.4.48(2025-07-10)
2
+ fix: 官方文档Card示例组件多行显示省略号样式异常
3
+
4
+ feat: album组件支持自定义preview事件
5
+
1
6
  ## 3.4.47(2025-07-09)
2
7
  fix: 修复datetime-picker打开时,数值可能出现对不上的问题
3
8
 
@@ -13,7 +13,7 @@
13
13
  v-for="(item, index1) in arr"
14
14
  :key="index1"
15
15
  :style="[imageStyle(index + 1, index1 + 1)]"
16
- @tap="previewFullImage ? onPreviewTap($event, getSrc(item)) : ''"
16
+ @tap="onPreviewTap($event, getSrc(item))"
17
17
  >
18
18
  <image
19
19
  :src="getSrc(item)"
@@ -185,6 +185,7 @@ export default {
185
185
  return width
186
186
  }
187
187
  },
188
+ emits: ['preview', 'albumWidth'],
188
189
  methods: {
189
190
  addUnit,
190
191
  // 预览图片
@@ -192,12 +193,19 @@ export default {
192
193
  const urls = this.urls.map((item) => {
193
194
  return this.getSrc(item)
194
195
  })
195
- uni.previewImage({
196
- current: url,
197
- urls
198
- })
199
- // 是否阻止事件传播
200
- this.stop && this.preventEvent(e)
196
+ if (this.previewFullImage) {
197
+ uni.previewImage({
198
+ current: url,
199
+ urls
200
+ })
201
+ // 是否阻止事件传播
202
+ this.stop && this.preventEvent(e)
203
+ } else {
204
+ this.$emit('preview', {
205
+ urls,
206
+ currentIndex: urls.indexOf(url)
207
+ })
208
+ }
201
209
  },
202
210
  // 获取图片的路径
203
211
  getSrc(item) {
@@ -95,7 +95,7 @@
95
95
  // console.log('内置字体图标加载成功');
96
96
  },
97
97
  fail() {
98
- console.error('内置字体图标加载出错');
98
+ // console.error('内置字体图标加载出错');
99
99
  }
100
100
  });
101
101
  if (config.customIcon.family) {
@@ -106,7 +106,7 @@
106
106
  // console.log('扩展字体图标加载成功');
107
107
  },
108
108
  fail() {
109
- console.error('扩展字体图标加载出错');
109
+ // console.error('扩展字体图标加载出错');
110
110
  }
111
111
  });
112
112
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.4.47",
5
+ "version": "3.4.48",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
7
7
  "keywords": [
8
8
  "uview",