|
@@ -714,6 +714,11 @@ const handleCopyRow = () => {
|
|
|
const copyOps = GC.Spread.Sheets.CopyToOptions.style | GC.Spread.Sheets.CopyToOptions.formula
|
|
const copyOps = GC.Spread.Sheets.CopyToOptions.style | GC.Spread.Sheets.CopyToOptions.formula
|
|
|
activeSheet.copyTo(row, tableCol, newRowIndex, tableCol, 1, tableColCount, copyOps)
|
|
activeSheet.copyTo(row, tableCol, newRowIndex, tableCol, 1, tableColCount, copyOps)
|
|
|
activeSheet.setRowHeight(newRowIndex, activeSheet.getRowHeight(row))
|
|
activeSheet.setRowHeight(newRowIndex, activeSheet.getRowHeight(row))
|
|
|
|
|
+ // 批量设置自动换行
|
|
|
|
|
+ activeSheet.getRange(newRowIndex, tableCol, 1, tableColCount).wordWrap(true)
|
|
|
|
|
+ // 新复制的行设为可编辑
|
|
|
|
|
+ activeSheet.getRange(newRowIndex, tableCol, 1, tableColCount).allowEditInCell(true)
|
|
|
|
|
+ activeSheet.getRange(newRowIndex, tableCol, 1, tableColCount).locked(false)
|
|
|
if (firstRowSpans.length > 0) {
|
|
if (firstRowSpans.length > 0) {
|
|
|
applyMergeRules(activeSheet, newRowIndex, firstRowSpans)
|
|
applyMergeRules(activeSheet, newRowIndex, firstRowSpans)
|
|
|
}
|
|
}
|