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.
- package/bundles/tnx-shared.umd.js +4 -1
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/base/component-base.d.ts +1 -0
- package/classes/base/component-base.d.ts.map +1 -1
- package/esm2015/classes/base/component-base.js +5 -2
- package/fesm2015/tnx-shared.js +4 -1
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -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:
|
|
10766
|
+
data: this.stringifyData(data),
|
|
10764
10767
|
name: 'Sheet1'
|
|
10765
10768
|
});
|
|
10766
10769
|
var file = new ExportItem({
|