Browse Source

修改文案描述

stringcache
Jiaju Zhuang 2 years ago
parent
commit
d58f51db0f
  1. 1
      easyexcel-test/src/test/java/com/alibaba/easyexcel/test/demo/write/WriteTest.java

1
easyexcel-test/src/test/java/com/alibaba/easyexcel/test/demo/write/WriteTest.java

@ -365,6 +365,7 @@ public class WriteTest {
writeCellStyleData.setFillForegroundColor(IndexedColors.GREEN.getIndex()); writeCellStyleData.setFillForegroundColor(IndexedColors.GREEN.getIndex());
// 设置单个单元格多种样式 // 设置单个单元格多种样式
// 这里需要设置 inMomery=true 不然会导致无法展示单个单元格多种样式,所以慎用
WriteCellData<String> richTest = new WriteCellData<>(); WriteCellData<String> richTest = new WriteCellData<>();
richTest.setType(CellDataTypeEnum.RICH_TEXT_STRING); richTest.setType(CellDataTypeEnum.RICH_TEXT_STRING);
writeCellDemoData.setRichText(richTest); writeCellDemoData.setRichText(richTest);

Loading…
Cancel
Save