39 Star 232 Fork 98

悟耘开源 / easypoi-spring-boot-starter

 / 详情

4.2.0版本,概念混乱,取值对应不上

待办的
任务
创建于  
2021-01-21 17:51

1、ExcelExportStylerDefaultImpl:
getTitleStyle、getHeaderStyle方法中的字体颜色设置,直接使用参数color,更好点吧~ font.setColor(color);
这样可以通过ExportParams参数类设置字体颜色。
2、ExportParams参数类的getHeaderHeight()方法,为什么取titleHeight?
3、ExportParams参数类,title、secondTitle、color、headerColor概念混乱。
使用默认样式实现 ExcelExportStylerDefaultImpl 时:
ExportParams exportParams = new ExportParams(TITLE, SHEET_NAME, ExcelType.XSSF);
//标题行高
exportParams.setTitleHeight((short) 30);
//实际设置title字体颜色
exportParams.setHeaderColor(HSSFColor.HSSFColorPredefined.SKY_BLUE.getIndex());
//实际设置属性说明行的字体颜色
exportParams.setColor(HSSFColor.HSSFColorPredefined.RED.getIndex());

评论 (0)

rollstones 创建了任务
展开全部操作日志

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(1)
1817167 rollstone 1610068601
Java
1
https://gitee.com/lemur/easypoi-spring-boot-starter.git
git@gitee.com:lemur/easypoi-spring-boot-starter.git
lemur
easypoi-spring-boot-starter
easypoi-spring-boot-starter

搜索帮助