|
@@ -1035,7 +1035,8 @@ public class ExcelUtil<T>
|
|
|
sheet.addMergedRegion(cellAddress);
|
|
|
}
|
|
|
cell.setCellStyle(styles.get(StringUtils.format("data_{}_{}_{}", attr.align(), attr.color(), attr.backgroundColor())));
|
|
|
-
|
|
|
+ //设置自动换行动态
|
|
|
+ cell.getCellStyle().setWrapText(attr.warpText());
|
|
|
// 用于读取对象中的属性
|
|
|
Object value = getTargetValue(vo, field, attr);
|
|
|
String dateFormat = attr.dateFormat();
|