rapid-spreadjs 1.0.168 → 1.0.170
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.cjs.js +7 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +7 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1469,7 +1469,7 @@ const BusinessUtils = {
|
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
1471
|
let rowObjs = { row: parseInt(rowIndexKey), rows: curRowIndexs, cells: cellItems, hasValue: curRowHasValue };
|
|
1472
|
-
if (!rowCells.some((x) => x.rowSpan == seqColSpanObj.row)) {
|
|
1472
|
+
if (seqColSpanObj && !rowCells.some((x) => x.rowSpan == seqColSpanObj.row)) {
|
|
1473
1473
|
let rowIndexs = [];
|
|
1474
1474
|
const seqColSpanRowSpan = sheet.getSpans({ row: seqColSpanObj.row, col: 1, rowCount: 1, colCount: 1 })[0];
|
|
1475
1475
|
for (let i = 0; i < seqColSpanRowSpan.rowCount; i++) {
|
|
@@ -1482,8 +1482,10 @@ const BusinessUtils = {
|
|
|
1482
1482
|
});
|
|
1483
1483
|
}
|
|
1484
1484
|
else {
|
|
1485
|
-
|
|
1486
|
-
|
|
1485
|
+
if (seqColSpanObj) {
|
|
1486
|
+
let curRow = rowCells.find((x) => x.rowSpan == seqColSpanObj.row);
|
|
1487
|
+
curRow.rows.push(rowObjs);
|
|
1488
|
+
}
|
|
1487
1489
|
}
|
|
1488
1490
|
});
|
|
1489
1491
|
// 有值和没有值的行索引集合
|
|
@@ -8738,7 +8740,7 @@ const EChartsUtilsAll = {
|
|
|
8738
8740
|
z: 6,
|
|
8739
8741
|
data: [
|
|
8740
8742
|
{ value: [logX1, y1], realX: x1, realY: y1, name: 'a1' },
|
|
8741
|
-
{ value: [logX2, y2], realX: x2, realY: +y2.toFixed(2), name: 'a2' },
|
|
8743
|
+
{ value: [logX2, y2], realX: x2, realY: isNaN(y2) ? 0 : +y2.toFixed(2), name: 'a2' },
|
|
8742
8744
|
{ value: [logX3, y3], realX: x3, realY: y3, name: 'a3' },
|
|
8743
8745
|
],
|
|
8744
8746
|
symbol: 'circle',
|
|
@@ -8765,7 +8767,7 @@ const EChartsUtilsAll = {
|
|
|
8765
8767
|
data: [{ coord: [logX2, y2] }],
|
|
8766
8768
|
label: {
|
|
8767
8769
|
show: true,
|
|
8768
|
-
formatter: '(' + x2 + ', ' + y2.toFixed(2) + ')',
|
|
8770
|
+
formatter: '(' + x2 + ', ' + (isNaN(y2) ? 0 : y2.toFixed(2)) + ')',
|
|
8769
8771
|
position: 'right',
|
|
8770
8772
|
distance: 10,
|
|
8771
8773
|
fontSize: 13,
|