mali-applet-ui 1.0.184 → 1.0.186

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.
@@ -101,8 +101,6 @@ export default {
101
101
  } else {
102
102
  item.errRule = null
103
103
  }
104
- } else {
105
- item.errRule = null
106
104
  }
107
105
  }
108
106
  return errMaps ? Promise.resolve(errMaps) : Promise.resolve()
@@ -449,6 +449,14 @@ export default {
449
449
  }
450
450
  },
451
451
  downloadEvent (item) {
452
+ // #ifdef MP-DINGTALK
453
+ uni.showModal({
454
+ content: '当前环境不支持下载',
455
+ showCancel: false
456
+ })
457
+ // #endif
458
+
459
+ // #ifndef MP-DINGTALK
452
460
  uni.downloadFile({
453
461
  url: this.getUrl(item),
454
462
  success: (downRes) => {
@@ -474,6 +482,7 @@ export default {
474
482
  })
475
483
  }
476
484
  })
485
+ // #endif
477
486
  },
478
487
  choose () {
479
488
  if (this.loading) {
package/modal/modal.js CHANGED
@@ -1,28 +1,4 @@
1
1
  const MaliModal = {
2
- open (option = {}) {
3
- return new Promise(resolve => {
4
- uni.showModal({
5
- ...option,
6
- content: option.content || '',
7
- title: option.title || '系统提示',
8
- showCancel: option.showCancelButton || false,
9
- confirmText: option.confirmButtonText || '确认',
10
- cancelText: option.cancelButtonText || '取消',
11
- success (res) {
12
- let type
13
- if (res.confirm) {
14
- type = 'confirm'
15
- } else if (res.cancel) {
16
- type = 'cancel'
17
- }
18
- if (option.callback) {
19
- option.callback(type)
20
- }
21
- resolve(type)
22
- }
23
- })
24
- })
25
- },
26
2
  alert (option = {}) {
27
3
  return new Promise(resolve => {
28
4
  uni.showModal({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.184",
3
+ "version": "1.0.186",
4
4
  "description": "vue2 码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",