imeik-bizui 2.4.9 → 2.5.1

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.
@@ -201,10 +201,11 @@ export default {
201
201
  * 获取对象值
202
202
  */
203
203
  getObjectValue(val) {
204
+ const dicValueKey = (this.attrs.prop || '') + 'DicValue'
204
205
  if (this.isMultiple) {
205
- return val?.map((item) => item[this.attrs.prop + 'DicValue']) || []
206
+ return val?.map((item) => item?.[dicValueKey]) || []
206
207
  } else {
207
- return val[this.attrs.prop + 'DicValue'] || ''
208
+ return val?.[dicValueKey] || ''
208
209
  }
209
210
  }
210
211
  }