rapid-spreadjs 1.0.170 → 1.0.171
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 +24 -26
- 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 +24 -26
- 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.esm.js
CHANGED
|
@@ -1447,7 +1447,7 @@ const BusinessUtils = {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
1449
|
let rowObjs = { row: parseInt(rowIndexKey), rows: curRowIndexs, cells: cellItems, hasValue: curRowHasValue };
|
|
1450
|
-
if (
|
|
1450
|
+
if (!rowCells.some((x) => x.rowSpan == seqColSpanObj.row)) {
|
|
1451
1451
|
let rowIndexs = [];
|
|
1452
1452
|
const seqColSpanRowSpan = sheet.getSpans({ row: seqColSpanObj.row, col: 1, rowCount: 1, colCount: 1 })[0];
|
|
1453
1453
|
for (let i = 0; i < seqColSpanRowSpan.rowCount; i++) {
|
|
@@ -1460,10 +1460,8 @@ const BusinessUtils = {
|
|
|
1460
1460
|
});
|
|
1461
1461
|
}
|
|
1462
1462
|
else {
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
curRow.rows.push(rowObjs);
|
|
1466
|
-
}
|
|
1463
|
+
let curRow = rowCells.find((x) => x.rowSpan == seqColSpanObj.row);
|
|
1464
|
+
curRow.rows.push(rowObjs);
|
|
1467
1465
|
}
|
|
1468
1466
|
});
|
|
1469
1467
|
// 有值和没有值的行索引集合
|
|
@@ -1521,6 +1519,27 @@ const BusinessUtils = {
|
|
|
1521
1519
|
// 设置行不可见
|
|
1522
1520
|
sheet.setRowVisible(rowIndex, false);
|
|
1523
1521
|
});
|
|
1522
|
+
// // 处理单元格边框线的问题
|
|
1523
|
+
// const allRowIndex = orderByJson(unionJson(hasValueRows, noValueRows));
|
|
1524
|
+
// const rowRange = sheet.getRange(allRowIndex[0], 1, allRowIndex.length, 77);
|
|
1525
|
+
// rowRange.setBorder(new GC.Spread.Sheets.LineBorder('#000', GC.Spread.Sheets.LineStyle.thin), { all: true });
|
|
1526
|
+
// rowRange.setBorder(new GC.Spread.Sheets.LineBorder('#000', GC.Spread.Sheets.LineStyle.medium), {
|
|
1527
|
+
// left: true,
|
|
1528
|
+
// right: true,
|
|
1529
|
+
// top: false,
|
|
1530
|
+
// bottom: false,
|
|
1531
|
+
// });
|
|
1532
|
+
// 没有启用动态加载行的时候,将所有的行都显示出来
|
|
1533
|
+
if (!isEnable) {
|
|
1534
|
+
hasValueRows.forEach((rowIndex, index) => {
|
|
1535
|
+
// 设置行可见
|
|
1536
|
+
sheet.setRowVisible(rowIndex, true);
|
|
1537
|
+
});
|
|
1538
|
+
noValueRows.forEach((rowIndex) => {
|
|
1539
|
+
// 设置行可见
|
|
1540
|
+
sheet.setRowVisible(rowIndex, true);
|
|
1541
|
+
});
|
|
1542
|
+
}
|
|
1524
1543
|
/** 创建空白行单元格 */
|
|
1525
1544
|
const createBlackRowCell = () => {
|
|
1526
1545
|
// 工作表总高度
|
|
@@ -1605,27 +1624,6 @@ const BusinessUtils = {
|
|
|
1605
1624
|
}
|
|
1606
1625
|
};
|
|
1607
1626
|
createBlackRowCell();
|
|
1608
|
-
// // 处理单元格边框线的问题
|
|
1609
|
-
// const allRowIndex = orderByJson(unionJson(hasValueRows, noValueRows));
|
|
1610
|
-
// const rowRange = sheet.getRange(allRowIndex[0], 1, allRowIndex.length, 77);
|
|
1611
|
-
// rowRange.setBorder(new GC.Spread.Sheets.LineBorder('#000', GC.Spread.Sheets.LineStyle.thin), { all: true });
|
|
1612
|
-
// rowRange.setBorder(new GC.Spread.Sheets.LineBorder('#000', GC.Spread.Sheets.LineStyle.medium), {
|
|
1613
|
-
// left: true,
|
|
1614
|
-
// right: true,
|
|
1615
|
-
// top: false,
|
|
1616
|
-
// bottom: false,
|
|
1617
|
-
// });
|
|
1618
|
-
// 没有启用动态加载行的时候,将所有的行都显示出来
|
|
1619
|
-
if (!isEnable) {
|
|
1620
|
-
hasValueRows.forEach((rowIndex, index) => {
|
|
1621
|
-
// 设置行可见
|
|
1622
|
-
sheet.setRowVisible(rowIndex, true);
|
|
1623
|
-
});
|
|
1624
|
-
noValueRows.forEach((rowIndex) => {
|
|
1625
|
-
// 设置行可见
|
|
1626
|
-
sheet.setRowVisible(rowIndex, true);
|
|
1627
|
-
});
|
|
1628
|
-
}
|
|
1629
1627
|
// 恢复绘制
|
|
1630
1628
|
sheet.resumePaint();
|
|
1631
1629
|
// 执行绘制完成后的回调函数
|