mali-applet-ui 0.2.87 → 0.2.89

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.
@@ -88,7 +88,10 @@ export default {
88
88
  },
89
89
  itemValue () {
90
90
  const value = XEUtils.get(this.formData, this.field)
91
- return XEUtils.eqNull(value) ? '' : value
91
+ if (XEUtils.eqNull(value) || (XEUtils.isArray(value) && !value.length)) {
92
+ return ''
93
+ }
94
+ return value
92
95
  },
93
96
  formData () {
94
97
  return (this.form ? this.form.value : {}) || {}
@@ -178,7 +178,7 @@ export default {
178
178
  },
179
179
  loadList () {
180
180
  if (this.simpleValue) {
181
- this.fileList = (this.urlList && this.urlList.length ? this.urlList : this.value).map(url => {
181
+ this.fileList = (this.urlList && this.urlList.length ? this.urlList : (this.value || [])).map(url => {
182
182
  const name = this.getUrlName(url)
183
183
  const obj = {
184
184
  id: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.2.87",
3
+ "version": "0.2.89",
4
4
  "description": "码里云小程序组件库",
5
5
  "scripts": {
6
6
  "release": "node script/release.js && npm publish"