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

This commit is contained in:
RuoYi
2022-07-20 09:32:11 +08:00
parent dd86447176
commit 0c0efc9455
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;