Closed softlg closed 6 days ago
// 内容样式
WriteCellStyle contentWriteCellStyle = new WriteCellStyle();
// 设置自动换行,前提内容中需要加「\n」才有效
contentWriteCellStyle.setWrapped(true);
HorizontalCellStyleStrategy horizontalCellStyleStrategy =
new HorizontalCellStyleStrategy(null, contentWriteCellStyle);
Demo: (由于业务需求,需要根据动态表头导出, 使用的是自定义的excel导出)
目前效果: