[alibaba/easyexcel]升级2.1.0-beta2后使用SimpleRowHeightStyleStrategy设置表头高度无效

2024-05-30 720 views
6

@Test public void testHeight() { SimpleRowHeightStyleStrategy rowHeightStyleStrategy = new SimpleRowHeightStyleStrategy((short)150, (short)120); EasyExcel.write("C:\Users\Administrator\Desktop\test2.xlsx", DemoData.class). registerWriteHandler(rowHeightStyleStrategy) .sheet("测试").doWrite(data()); }

升级了2.1.0-beta2后,使用SimpleRowHeightStyleStrategy 设置表头的高度,但是并未生效,内容高度生效了

image

回答

0

这个是个bug,已经在2.1.0-beta3修复

8

这个是个bug,已经在2.1.0-beta3修复

got it

7

实测2.0.1的head高度设置有效,.registerWriteHandler()的顺序不对所以不生效