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.esm.js CHANGED
@@ -815,6 +815,8 @@ const BusinessUtils = {
815
815
  }
816
816
  // 获取当前工作表
817
817
  const sheet = spread.getActiveSheet();
818
+ // 判断要循环的单元格最后一行是否为表格的末尾行,如果是,则在循环创建单元行的最后一行的时候,下边框线位细线样式
819
+ const isCyclicLastRowIsSheetLastRow = cellRange.row + cellRange.rowCount == sheet.getRowCount();
818
820
  /**
819
821
  * 添加行
820
822
  * @param addRowIndex 添加行的索引位置
@@ -865,6 +867,13 @@ const BusinessUtils = {
865
867
  else if (curDefaultPointCount > 1 && lastDefaultPointCount == 0) {
866
868
  addRowsFun(cellRange.row + cellRange.rowCount, (curDefaultPointCount - 1) * cellRange.rowCount, curDefaultPointCount - 1);
867
869
  }
870
+ // 判断要循环的单元格最后一行是否为表格的末尾行,如果是,则在循环创建单元行的最后一行的时候,下边框线位细线样式
871
+ if (isCyclicLastRowIsSheetLastRow) {
872
+ // 设置所有内边框线为细线样式
873
+ sheet
874
+ .getRange(cellRange.row, cellRange.col, curDefaultPointCount * cellRange.rowCount, cellRange.colCount)
875
+ .setBorder(new GC.Spread.Sheets.LineBorder('#000', GC.Spread.Sheets.LineStyle.thin), { inside: true });
876
+ }
868
877
  // 恢复绘制
869
878
  sheet.resumePaint();
870
879
  },