@indfnd/common 1.1.1 → 1.1.2
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/CHANGELOG.md +2 -0
- package/dist/ind-common.es.js +11 -3
- package/dist/ind-common.umd.cjs +48 -48
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.2](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.1...v1.1.2) (2025-09-02)
|
|
6
|
+
|
|
5
7
|
### [1.1.1](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.0...v1.1.1) (2025-08-30)
|
|
6
8
|
|
|
7
9
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
|
|
|
5460
5460
|
})(lodash, lodash.exports);
|
|
5461
5461
|
var _ = lodash.exports;
|
|
5462
5462
|
const name$1 = "@indfnd/common";
|
|
5463
|
-
const version = "1.1.
|
|
5463
|
+
const version = "1.1.1";
|
|
5464
5464
|
const author = "huxuetong";
|
|
5465
5465
|
const publishConfig = {
|
|
5466
5466
|
registry: "https://registry.npmjs.org/"
|
|
@@ -43833,7 +43833,11 @@ function exportJsonToExcel(excelData) {
|
|
|
43833
43833
|
const mergeEndCol = j + 1 + colSpan - 1;
|
|
43834
43834
|
if (mergeEndRow < rowsNow + jsonData.length && mergeEndCol <= columnCount) {
|
|
43835
43835
|
worksheet.mergeCells(rowsNow + i, j + 1, mergeEndRow, mergeEndCol);
|
|
43836
|
-
if (columnType[j] === "
|
|
43836
|
+
if (columnType[j] === "p" && lineData[j]) {
|
|
43837
|
+
const numericValue = typeof lineData[j].value === "string" ? parseFloat(lineData[j].value.replace(/,/g, "")) : lineData[j].value;
|
|
43838
|
+
worksheet.getCell(rowsNow + i, j + 1).value = isNaN(numericValue) ? 0 : parseFloat(numericValue / 100);
|
|
43839
|
+
dataCellStyle2.numFmt = numberFormat[j];
|
|
43840
|
+
} else if (columnType[j] === "s") {
|
|
43837
43841
|
if (lineData[j] === "0") {
|
|
43838
43842
|
worksheet.getCell(rowsNow + i, j + 1).value = 0;
|
|
43839
43843
|
} else if (lineData[j] !== void 0 && lineData[j] !== null) {
|
|
@@ -43883,7 +43887,11 @@ function exportJsonToExcel(excelData) {
|
|
|
43883
43887
|
}
|
|
43884
43888
|
}
|
|
43885
43889
|
if (!mergedCells.has(cellKey)) {
|
|
43886
|
-
if (columnType[j] === "
|
|
43890
|
+
if (columnType[j] === "p" && lineData[j]) {
|
|
43891
|
+
const numericValue = typeof lineData[j].value === "string" ? parseFloat(lineData[j].value.replace(/,/g, "")) : lineData[j].value;
|
|
43892
|
+
worksheet.getCell(rowsNow + i, j + 1).value = isNaN(numericValue) ? 0 : parseFloat(numericValue / 100);
|
|
43893
|
+
dataCellStyle2.numFmt = numberFormat[j];
|
|
43894
|
+
} else if (columnType[j] === "s") {
|
|
43887
43895
|
if (lineData[j] === "0") {
|
|
43888
43896
|
worksheet.getCell(rowsNow + i, j + 1).value = 0;
|
|
43889
43897
|
} else if (lineData[j] !== void 0 && lineData[j] !== null) {
|