@panpanzhao/component-ui 0.0.22 → 0.0.23

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.
@@ -3911,12 +3911,15 @@ var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_)
3911
3911
  });
3912
3912
  }
3913
3913
  var value = this.formModel[item.prop];
3914
+ if (value === null || value === undefined) {
3915
+ return value;
3916
+ }
3914
3917
  if (item.control === "Dict" && item.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
3915
3918
  var options = this.$COMPONENT.dataSource.dict[item.dictCode];
3916
3919
  var map = {};
3917
3920
  if (Array.isArray(options)) {
3918
3921
  options.forEach(function (dictItem) {
3919
- map[dictItem.value] = item;
3922
+ map[dictItem.value] = dictItem;
3920
3923
  });
3921
3924
  }
3922
3925
  return map[value] && map[value].label;
@@ -653,12 +653,15 @@ var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_)
653
653
  });
654
654
  }
655
655
  var value = this.formModel[item.prop];
656
+ if (value === null || value === undefined) {
657
+ return value;
658
+ }
656
659
  if (item.control === "Dict" && item.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
657
660
  var options = this.$COMPONENT.dataSource.dict[item.dictCode];
658
661
  var map = {};
659
662
  if (Array.isArray(options)) {
660
663
  options.forEach(function (dictItem) {
661
- map[dictItem.value] = item;
664
+ map[dictItem.value] = dictItem;
662
665
  });
663
666
  }
664
667
  return map[value] && map[value].label;
@@ -347,12 +347,15 @@ var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_)
347
347
  });
348
348
  }
349
349
  var value = this.formModel[item.prop];
350
+ if (value === null || value === undefined) {
351
+ return value;
352
+ }
350
353
  if (item.control === "Dict" && item.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
351
354
  var options = this.$COMPONENT.dataSource.dict[item.dictCode];
352
355
  var map = {};
353
356
  if (Array.isArray(options)) {
354
357
  options.forEach(function (dictItem) {
355
- map[dictItem.value] = item;
358
+ map[dictItem.value] = dictItem;
356
359
  });
357
360
  }
358
361
  return map[value] && map[value].label;
@@ -239,12 +239,15 @@ var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_)
239
239
  });
240
240
  }
241
241
  var value = this.formModel[item.prop];
242
+ if (value === null || value === undefined) {
243
+ return value;
244
+ }
242
245
  if (item.control === "Dict" && item.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
243
246
  var options = this.$COMPONENT.dataSource.dict[item.dictCode];
244
247
  var map = {};
245
248
  if (Array.isArray(options)) {
246
249
  options.forEach(function (dictItem) {
247
- map[dictItem.value] = item;
250
+ map[dictItem.value] = dictItem;
248
251
  });
249
252
  }
250
253
  return map[value] && map[value].label;
@@ -219,12 +219,15 @@ var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_)
219
219
  });
220
220
  }
221
221
  var value = this.formModel[item.prop];
222
+ if (value === null || value === undefined) {
223
+ return value;
224
+ }
222
225
  if (item.control === "Dict" && item.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
223
226
  var options = this.$COMPONENT.dataSource.dict[item.dictCode];
224
227
  var map = {};
225
228
  if (Array.isArray(options)) {
226
229
  options.forEach(function (dictItem) {
227
- map[dictItem.value] = item;
230
+ map[dictItem.value] = dictItem;
228
231
  });
229
232
  }
230
233
  return map[value] && map[value].label;
@@ -653,12 +653,15 @@ var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_)
653
653
  });
654
654
  }
655
655
  var value = this.formModel[item.prop];
656
+ if (value === null || value === undefined) {
657
+ return value;
658
+ }
656
659
  if (item.control === "Dict" && item.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
657
660
  var options = this.$COMPONENT.dataSource.dict[item.dictCode];
658
661
  var map = {};
659
662
  if (Array.isArray(options)) {
660
663
  options.forEach(function (dictItem) {
661
- map[dictItem.value] = item;
664
+ map[dictItem.value] = dictItem;
662
665
  });
663
666
  }
664
667
  return map[value] && map[value].label;