Browse Source

REPORT-55060 数据集预览支持复制

feature/10.0
Henry.Wang 3 years ago
parent
commit
bd6817a976
  1. 7
      designer-realize/src/main/java/com/fr/design/cell/clipboard/CellElementsClip.java

7
designer-realize/src/main/java/com/fr/design/cell/clipboard/CellElementsClip.java

@ -98,13 +98,10 @@ public class CellElementsClip implements Cloneable, java.io.Serializable {
table.add(new ArrayList<>()); table.add(new ArrayList<>());
} }
if (currentRow < cellElement.getRow()) { while (currentRow<cellElement.getRow()){
for (int r = currentRow; r < cellElement.getRow(); r++) {
table.add(new ArrayList<>()); table.add(new ArrayList<>());
currentRow++;
} }
currentRow = cellElement.getRow();
}
Object cellValue = cellElement.getValue() == null ? StringUtils.EMPTY : cellElement.getValue(); Object cellValue = cellElement.getValue() == null ? StringUtils.EMPTY : cellElement.getValue();
table.get(currentRow - startRow).add(cellValue); table.get(currentRow - startRow).add(cellValue);

Loading…
Cancel
Save