tnx-shared 5.3.302 → 5.3.303

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.
@@ -10756,11 +10756,14 @@
10756
10756
  return;
10757
10757
  }
10758
10758
  };
10759
+ ComponentBase.prototype.stringifyData = function (obj) {
10760
+ return JSON.stringify(obj, function (k, v) { return v === undefined ? null : v; });
10761
+ };
10759
10762
  ComponentBase.prototype.exportExcelV5 = function (data, templateCode, fileName) {
10760
10763
  var sheet = new ExportItem({
10761
10764
  type: exports.ExportItemType.ExcelSheet,
10762
10765
  templateCode: templateCode,
10763
- data: JSON.stringify(data),
10766
+ data: this.stringifyData(data),
10764
10767
  name: 'Sheet1'
10765
10768
  });
10766
10769
  var file = new ExportItem({