mali-applet-ui 0.0.65 → 0.0.68

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.
@@ -55,7 +55,11 @@ export default {
55
55
  mounted () {
56
56
  this.$nextTick(() => {
57
57
  if (this.form) {
58
- this.form.itemList.push(this)
58
+ this.form.itemList.push({
59
+ mId: this.mId,
60
+ title: this.title,
61
+ field: this.field
62
+ })
59
63
  }
60
64
  })
61
65
  },
@@ -81,7 +85,8 @@ export default {
81
85
  return false
82
86
  },
83
87
  itemValue () {
84
- return this.formData[this.field]
88
+ const value = this.formData[this.field]
89
+ return XEUtils.eqNull(value) ? '' : value
85
90
  },
86
91
  formData () {
87
92
  return (this.form ? this.form.value : {}) || {}
package/modal/toast.js CHANGED
@@ -4,7 +4,9 @@ const MaliToast = {
4
4
  uni.showToast({
5
5
  title: option.content || '操作成功',
6
6
  icon: 'success',
7
- success: resolve
7
+ success () {
8
+ setTimeout(resolve, 1500)
9
+ }
8
10
  })
9
11
  })
10
12
  },
@@ -13,14 +15,18 @@ const MaliToast = {
13
15
  uni.showToast({
14
16
  title: option.content || '操作失败',
15
17
  icon: 'error',
16
- success: resolve
18
+ success () {
19
+ setTimeout(resolve, 1500)
20
+ }
17
21
  })
18
22
  })
19
23
  },
20
24
  hide () {
21
25
  return new Promise(resolve => {
22
26
  uni.hideToast({
23
- success: resolve
27
+ success () {
28
+ setTimeout(resolve, 1500)
29
+ }
24
30
  })
25
31
  })
26
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.0.65",
3
+ "version": "0.0.68",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",