Excel注解支持backgroundColor属性设置背景色

This commit is contained in:
RuoYi
2022-07-20 09:39:58 +08:00
parent 28b9fbb4d2
commit 1f0e742710
2 changed files with 60 additions and 21 deletions

View File

@ -109,7 +109,22 @@ public @interface Excel
public ColumnType cellType() default ColumnType.STRING;
/**
* 导出字体颜
* 导出列头背景
*/
public IndexedColors headerBackgroundColor() default IndexedColors.GREY_50_PERCENT;
/**
* 导出列头字体颜色
*/
public IndexedColors headerColor() default IndexedColors.WHITE;
/**
* 导出单元格背景色
*/
public IndexedColors backgroundColor() default IndexedColors.WHITE;
/**
* 导出单元格字体颜色
*/
public IndexedColors color() default IndexedColors.BLACK;