Browse Source

REPORT-68062 单元格数据列高级设置-格式设置不生效

【问题原因】
文本格式需要通过重新设置样式才能更新到被编辑的单元格中,
否则文本格式样式无法设置

【改动思路】
更新样式到被编辑的单元格中

【review建议】
new-design
Starryi 3 years ago
parent
commit
98040cf2a0
  1. 1
      designer-realize/src/main/java/com/fr/grid/Grid.java

1
designer-realize/src/main/java/com/fr/grid/Grid.java

@ -1095,6 +1095,7 @@ public class Grid extends BaseGridComponent {
TemplateCellElement cellElement = (TemplateCellElement) newValue; TemplateCellElement cellElement = (TemplateCellElement) newValue;
editingCellElement.setValue(cellElement.getValue()); editingCellElement.setValue(cellElement.getValue());
editingCellElement.setCellExpandAttr(cellElement.getCellExpandAttr()); editingCellElement.setCellExpandAttr(cellElement.getCellExpandAttr());
editingCellElement.setStyle(cellElement.getStyle());
return true; return true;
} else if (newValue instanceof CellImage) { } else if (newValue instanceof CellImage) {
CellImage cellImage = (CellImage) newValue; CellImage cellImage = (CellImage) newValue;

Loading…
Cancel
Save