mali-applet-ui 0.1.66 → 0.1.67

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.
@@ -279,7 +279,7 @@ export default {
279
279
  this.previewStatus = true
280
280
  Promise.all(
281
281
  this.value.map(item => {
282
- return new Promise((resolve, reject) => {
282
+ return new Promise((resolve) => {
283
283
  uni.downloadFile({
284
284
  url: this.getUrl(item),
285
285
  success: (downRes) => {
@@ -296,12 +296,10 @@ export default {
296
296
  })
297
297
  })
298
298
  ).then(res => {
299
- if (typeof wx === 'object') {
300
- wx.previewMedia({
301
- current: index,
302
- sources: res
303
- })
304
- }
299
+ uni.previewImage({
300
+ current: index,
301
+ urls: res.map(item => item.url)
302
+ })
305
303
  this.previewStatus = false
306
304
  })
307
305
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.1.66",
3
+ "version": "0.1.67",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",