excel 导出
集成
<dependency>
<groupId>com.manatee.manatee-lowcode</groupId>
<artifactId>lowcode-excel</artifactId>
<version>${lowcode.version}</version>
</dependency>
样式配置
可配置标题、表头的样式、可以配置表格的列宽
提示
颜色值(如 YELLOW ),不同的 poi 版本会有差别,注意和工程所引入 poi 里 IndexedColors 类的枚举对应。
head.组件名称.fill ="YELLOW";
head.组件名称.content = "RED";
title.fill.color = "YELLOW";
title.content.color = "RED";
# 表示将第二列的宽度设为40
column.width.1 = 40;
校验配置
可对数据进行校验,不通过校验的数据标记高亮
效果
提示
响应数据为文件流的接口的 url 需要特殊处理,需要把modularity
替换为 modularityExport
,如: /biz/modularityExport
/project176/excelExport