mali-applet-ui 1.0.183 → 1.0.185

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()
@@ -21,6 +21,7 @@ export default {
21
21
  dotStatus: String,
22
22
  dotNum: [String, Number],
23
23
  width: [String, Number],
24
+ params: Object,
24
25
  className: String
25
26
  },
26
27
  inject: {
@@ -64,7 +65,8 @@ export default {
64
65
  showDot: this.showDot,
65
66
  dotStatus: this.dotStatus,
66
67
  dotNum: this.dotNum,
67
- width: this.width
68
+ width: this.width,
69
+ params: this.params
68
70
  })
69
71
  }
70
72
  })
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.183",
3
+ "version": "1.0.185",
4
4
  "description": "vue2 码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",