mali-applet-ui 1.0.138 → 1.0.140

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.
@@ -61,6 +61,17 @@ export default {
61
61
  return this.form ? this.form.readonly : false
62
62
  },
63
63
  optionList () {
64
+ // #ifdef MP-ALIPAY
65
+ if (!this.options || !this.options.length) {
66
+ return [
67
+ {
68
+ [this.optLabelField]: '',
69
+ [this.optValueField]: null
70
+ }
71
+ ]
72
+ }
73
+ // #endif
74
+
64
75
  if (this.isAll) {
65
76
  return [
66
77
  {
@@ -69,7 +80,7 @@ export default {
69
80
  }
70
81
  ].concat(this.options)
71
82
  }
72
- return this.options || []
83
+ return this.options
73
84
  },
74
85
  selectLabel () {
75
86
  const item = this.optionList.find(item => String(item[this.optValueField]) === String(this.value))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.138",
3
+ "version": "1.0.140",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",