@leankylin-sheet/excel 5.1.9 → 5.1.10
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/dist/index.esm.js +9 -5
- package/dist/index.js +9 -5
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -5084,7 +5084,7 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
|
|
|
5084
5084
|
var dbrow = worksheet.getRow(rowid + 1);
|
|
5085
5085
|
dbrow.height = (((_table$config = table.config) === null || _table$config === void 0 ? void 0 : (_table$config$rowlen = _table$config.rowlen) === null || _table$config$rowlen === void 0 ? void 0 : _table$config$rowlen[rowid]) || 19) / 1.2;
|
|
5086
5086
|
row.every(function (cell, columnid) {
|
|
5087
|
-
var _cell$
|
|
5087
|
+
var _cell$ct5;
|
|
5088
5088
|
if (rowid === 0) {
|
|
5089
5089
|
var _table$config2, _table$config2$column;
|
|
5090
5090
|
var dobCol = worksheet.getColumn(columnid + 1);
|
|
@@ -5092,14 +5092,18 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
|
|
|
5092
5092
|
}
|
|
5093
5093
|
if (!cell) return true;
|
|
5094
5094
|
function getFa() {
|
|
5095
|
+
var _cell$ct, _cell$ct$fa;
|
|
5096
|
+
if (cell === null || cell === void 0 ? void 0 : (_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : (_cell$ct$fa = _cell$ct.fa) === null || _cell$ct$fa === void 0 ? void 0 : _cell$ct$fa.includes("leanky_")) {
|
|
5097
|
+
return "";
|
|
5098
|
+
}
|
|
5095
5099
|
return cell.ct.fa;
|
|
5096
5100
|
}
|
|
5097
5101
|
function getT() {
|
|
5098
|
-
var _cell$
|
|
5099
|
-
if ((cell === null || cell === void 0 ? void 0 : (_cell$
|
|
5102
|
+
var _cell$ct2, _cell$ct3, _cell$ct3$fa, _cell$ct4;
|
|
5103
|
+
if ((cell === null || cell === void 0 ? void 0 : (_cell$ct2 = cell.ct) === null || _cell$ct2 === void 0 ? void 0 : _cell$ct2.t) !== "n" && (cell === null || cell === void 0 ? void 0 : (_cell$ct3 = cell.ct) === null || _cell$ct3 === void 0 ? void 0 : (_cell$ct3$fa = _cell$ct3.fa) === null || _cell$ct3$fa === void 0 ? void 0 : _cell$ct3$fa.includes("leanky_"))) {
|
|
5100
5104
|
return "n";
|
|
5101
5105
|
}
|
|
5102
|
-
return cell === null || cell === void 0 ? void 0 : (_cell$
|
|
5106
|
+
return cell === null || cell === void 0 ? void 0 : (_cell$ct4 = cell.ct) === null || _cell$ct4 === void 0 ? void 0 : _cell$ct4.t;
|
|
5103
5107
|
}
|
|
5104
5108
|
var ctT = getT();
|
|
5105
5109
|
var fill = fillConvert(cell.bg);
|
|
@@ -5109,7 +5113,7 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
|
|
|
5109
5113
|
target.fill = fill;
|
|
5110
5114
|
target.font = font;
|
|
5111
5115
|
target.alignment = alignment;
|
|
5112
|
-
if ((_.isNil(cell.v) || _.isNaN(cell.v)) && (cell === null || cell === void 0 ? void 0 : (_cell$
|
|
5116
|
+
if ((_.isNil(cell.v) || _.isNaN(cell.v)) && (cell === null || cell === void 0 ? void 0 : (_cell$ct5 = cell.ct) === null || _cell$ct5 === void 0 ? void 0 : _cell$ct5.t) !== "inlineStr") return true;
|
|
5113
5117
|
var value;
|
|
5114
5118
|
var v = "";
|
|
5115
5119
|
var numFmt = "";
|
package/dist/index.js
CHANGED
|
@@ -5096,7 +5096,7 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
|
|
|
5096
5096
|
var dbrow = worksheet.getRow(rowid + 1);
|
|
5097
5097
|
dbrow.height = (((_table$config = table.config) === null || _table$config === void 0 ? void 0 : (_table$config$rowlen = _table$config.rowlen) === null || _table$config$rowlen === void 0 ? void 0 : _table$config$rowlen[rowid]) || 19) / 1.2;
|
|
5098
5098
|
row.every(function (cell, columnid) {
|
|
5099
|
-
var _cell$
|
|
5099
|
+
var _cell$ct5;
|
|
5100
5100
|
if (rowid === 0) {
|
|
5101
5101
|
var _table$config2, _table$config2$column;
|
|
5102
5102
|
var dobCol = worksheet.getColumn(columnid + 1);
|
|
@@ -5104,14 +5104,18 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
|
|
|
5104
5104
|
}
|
|
5105
5105
|
if (!cell) return true;
|
|
5106
5106
|
function getFa() {
|
|
5107
|
+
var _cell$ct, _cell$ct$fa;
|
|
5108
|
+
if (cell === null || cell === void 0 ? void 0 : (_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : (_cell$ct$fa = _cell$ct.fa) === null || _cell$ct$fa === void 0 ? void 0 : _cell$ct$fa.includes("leanky_")) {
|
|
5109
|
+
return "";
|
|
5110
|
+
}
|
|
5107
5111
|
return cell.ct.fa;
|
|
5108
5112
|
}
|
|
5109
5113
|
function getT() {
|
|
5110
|
-
var _cell$
|
|
5111
|
-
if ((cell === null || cell === void 0 ? void 0 : (_cell$
|
|
5114
|
+
var _cell$ct2, _cell$ct3, _cell$ct3$fa, _cell$ct4;
|
|
5115
|
+
if ((cell === null || cell === void 0 ? void 0 : (_cell$ct2 = cell.ct) === null || _cell$ct2 === void 0 ? void 0 : _cell$ct2.t) !== "n" && (cell === null || cell === void 0 ? void 0 : (_cell$ct3 = cell.ct) === null || _cell$ct3 === void 0 ? void 0 : (_cell$ct3$fa = _cell$ct3.fa) === null || _cell$ct3$fa === void 0 ? void 0 : _cell$ct3$fa.includes("leanky_"))) {
|
|
5112
5116
|
return "n";
|
|
5113
5117
|
}
|
|
5114
|
-
return cell === null || cell === void 0 ? void 0 : (_cell$
|
|
5118
|
+
return cell === null || cell === void 0 ? void 0 : (_cell$ct4 = cell.ct) === null || _cell$ct4 === void 0 ? void 0 : _cell$ct4.t;
|
|
5115
5119
|
}
|
|
5116
5120
|
var ctT = getT();
|
|
5117
5121
|
var fill = fillConvert(cell.bg);
|
|
@@ -5121,7 +5125,7 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
|
|
|
5121
5125
|
target.fill = fill;
|
|
5122
5126
|
target.font = font;
|
|
5123
5127
|
target.alignment = alignment;
|
|
5124
|
-
if ((___default['default'].isNil(cell.v) || ___default['default'].isNaN(cell.v)) && (cell === null || cell === void 0 ? void 0 : (_cell$
|
|
5128
|
+
if ((___default['default'].isNil(cell.v) || ___default['default'].isNaN(cell.v)) && (cell === null || cell === void 0 ? void 0 : (_cell$ct5 = cell.ct) === null || _cell$ct5 === void 0 ? void 0 : _cell$ct5.t) !== "inlineStr") return true;
|
|
5125
5129
|
var value;
|
|
5126
5130
|
var v = "";
|
|
5127
5131
|
var numFmt = "";
|