rapid-spreadjs 1.0.52 → 1.0.53
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 +9 -0
- 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 +9 -0
- 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
|
@@ -837,6 +837,8 @@ const BusinessUtils = {
|
|
|
837
837
|
}
|
|
838
838
|
// 获取当前工作表
|
|
839
839
|
const sheet = spread.getActiveSheet();
|
|
840
|
+
// 判断要循环的单元格最后一行是否为表格的末尾行,如果是,则在循环创建单元行的最后一行的时候,下边框线位细线样式
|
|
841
|
+
const isCyclicLastRowIsSheetLastRow = cellRange.row + cellRange.rowCount == sheet.getRowCount();
|
|
840
842
|
/**
|
|
841
843
|
* 添加行
|
|
842
844
|
* @param addRowIndex 添加行的索引位置
|
|
@@ -887,6 +889,13 @@ const BusinessUtils = {
|
|
|
887
889
|
else if (curDefaultPointCount > 1 && lastDefaultPointCount == 0) {
|
|
888
890
|
addRowsFun(cellRange.row + cellRange.rowCount, (curDefaultPointCount - 1) * cellRange.rowCount, curDefaultPointCount - 1);
|
|
889
891
|
}
|
|
892
|
+
// 判断要循环的单元格最后一行是否为表格的末尾行,如果是,则在循环创建单元行的最后一行的时候,下边框线位细线样式
|
|
893
|
+
if (isCyclicLastRowIsSheetLastRow) {
|
|
894
|
+
// 设置所有内边框线为细线样式
|
|
895
|
+
sheet
|
|
896
|
+
.getRange(cellRange.row, cellRange.col, curDefaultPointCount * cellRange.rowCount, cellRange.colCount)
|
|
897
|
+
.setBorder(new GC.Spread.Sheets.LineBorder('#000', GC.Spread.Sheets.LineStyle.thin), { inside: true });
|
|
898
|
+
}
|
|
890
899
|
// 恢复绘制
|
|
891
900
|
sheet.resumePaint();
|
|
892
901
|
},
|