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.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 (
|
|
1472
|
+
if (!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,10 +1482,8 @@ const BusinessUtils = {
|
|
|
1482
1482
|
});
|
|
1483
1483
|
}
|
|
1484
1484
|
else {
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
curRow.rows.push(rowObjs);
|
|
1488
|
-
}
|
|
1485
|
+
let curRow = rowCells.find((x) => x.rowSpan == seqColSpanObj.row);
|
|
1486
|
+
curRow.rows.push(rowObjs);
|
|
1489
1487
|
}
|
|
1490
1488
|
});
|
|
1491
1489
|
// 有值和没有值的行索引集合
|
|
@@ -1543,6 +1541,27 @@ const BusinessUtils = {
|
|
|
1543
1541
|
// 设置行不可见
|
|
1544
1542
|
sheet.setRowVisible(rowIndex, false);
|
|
1545
1543
|
});
|
|
1544
|
+
// // 处理单元格边框线的问题
|
|
1545
|
+
// const allRowIndex = orderByJson(unionJson(hasValueRows, noValueRows));
|
|
1546
|
+
// const rowRange = sheet.getRange(allRowIndex[0], 1, allRowIndex.length, 77);
|
|
1547
|
+
// rowRange.setBorder(new GC.Spread.Sheets.LineBorder('#000', GC.Spread.Sheets.LineStyle.thin), { all: true });
|
|
1548
|
+
// rowRange.setBorder(new GC.Spread.Sheets.LineBorder('#000', GC.Spread.Sheets.LineStyle.medium), {
|
|
1549
|
+
// left: true,
|
|
1550
|
+
// right: true,
|
|
1551
|
+
// top: false,
|
|
1552
|
+
// bottom: false,
|
|
1553
|
+
// });
|
|
1554
|
+
// 没有启用动态加载行的时候,将所有的行都显示出来
|
|
1555
|
+
if (!isEnable) {
|
|
1556
|
+
hasValueRows.forEach((rowIndex, index) => {
|
|
1557
|
+
// 设置行可见
|
|
1558
|
+
sheet.setRowVisible(rowIndex, true);
|
|
1559
|
+
});
|
|
1560
|
+
noValueRows.forEach((rowIndex) => {
|
|
1561
|
+
// 设置行可见
|
|
1562
|
+
sheet.setRowVisible(rowIndex, true);
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1546
1565
|
/** 创建空白行单元格 */
|
|
1547
1566
|
const createBlackRowCell = () => {
|
|
1548
1567
|
// 工作表总高度
|
|
@@ -1627,27 +1646,6 @@ const BusinessUtils = {
|
|
|
1627
1646
|
}
|
|
1628
1647
|
};
|
|
1629
1648
|
createBlackRowCell();
|
|
1630
|
-
// // 处理单元格边框线的问题
|
|
1631
|
-
// const allRowIndex = orderByJson(unionJson(hasValueRows, noValueRows));
|
|
1632
|
-
// const rowRange = sheet.getRange(allRowIndex[0], 1, allRowIndex.length, 77);
|
|
1633
|
-
// rowRange.setBorder(new GC.Spread.Sheets.LineBorder('#000', GC.Spread.Sheets.LineStyle.thin), { all: true });
|
|
1634
|
-
// rowRange.setBorder(new GC.Spread.Sheets.LineBorder('#000', GC.Spread.Sheets.LineStyle.medium), {
|
|
1635
|
-
// left: true,
|
|
1636
|
-
// right: true,
|
|
1637
|
-
// top: false,
|
|
1638
|
-
// bottom: false,
|
|
1639
|
-
// });
|
|
1640
|
-
// 没有启用动态加载行的时候,将所有的行都显示出来
|
|
1641
|
-
if (!isEnable) {
|
|
1642
|
-
hasValueRows.forEach((rowIndex, index) => {
|
|
1643
|
-
// 设置行可见
|
|
1644
|
-
sheet.setRowVisible(rowIndex, true);
|
|
1645
|
-
});
|
|
1646
|
-
noValueRows.forEach((rowIndex) => {
|
|
1647
|
-
// 设置行可见
|
|
1648
|
-
sheet.setRowVisible(rowIndex, true);
|
|
1649
|
-
});
|
|
1650
|
-
}
|
|
1651
1649
|
// 恢复绘制
|
|
1652
1650
|
sheet.resumePaint();
|
|
1653
1651
|
// 执行绘制完成后的回调函数
|