mirror of
https://gitee.com/y_project/RuoYi-Vue.git
synced 2026-08-18 18:19:41 +08:00
升级poi到最新版本5.5.1
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -26,7 +26,7 @@
|
||||
<fastjson.version>2.0.64</fastjson.version>
|
||||
<oshi.version>7.4.4</oshi.version>
|
||||
<commons.io.version>2.22.0</commons.io.version>
|
||||
<poi.version>4.1.2</poi.version>
|
||||
<poi.version>5.5.1</poi.version>
|
||||
<velocity.version>2.3</velocity.version>
|
||||
<jwt.version>0.9.1</jwt.version>
|
||||
<jaxb-api.version>2.3.1</jaxb-api.version>
|
||||
|
||||
@@ -1010,13 +1010,13 @@ public class ExcelUtil<T>
|
||||
style.cloneStyleFrom(styles.get("data"));
|
||||
style.setAlignment(HorizontalAlignment.CENTER);
|
||||
style.setVerticalAlignment(VerticalAlignment.CENTER);
|
||||
style.setFillForegroundColor(excel.headerBackgroundColor().index);
|
||||
style.setFillForegroundColor(excel.headerBackgroundColor().getIndex());
|
||||
style.setFillPattern(FillPatternType.SOLID_FOREGROUND);
|
||||
Font headerFont = wb.createFont();
|
||||
headerFont.setFontName("Arial");
|
||||
headerFont.setFontHeightInPoints((short) 10);
|
||||
headerFont.setBold(true);
|
||||
headerFont.setColor(excel.headerColor().index);
|
||||
headerFont.setColor(excel.headerColor().getIndex());
|
||||
style.setFont(headerFont);
|
||||
// 设置表格头单元格文本形式
|
||||
DataFormat dataFormat = wb.createDataFormat();
|
||||
@@ -1088,7 +1088,7 @@ public class ExcelUtil<T>
|
||||
Font dataFont = wb.createFont();
|
||||
dataFont.setFontName("Arial");
|
||||
dataFont.setFontHeightInPoints((short) 10);
|
||||
dataFont.setColor(excel.color().index);
|
||||
dataFont.setColor(excel.color().getIndex());
|
||||
style.setFont(dataFont);
|
||||
if (ColumnType.TEXT == excel.cellType())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user