update 优化 excel 导出字典默认转为下拉框

This commit is contained in:
疯狂的狮子Li
2023-07-28 20:08:53 +08:00
parent ec6704181f
commit fea9fdaa5f
10 changed files with 18 additions and 17 deletions

View File

@@ -196,10 +196,8 @@ public class ExcelUtil {
// 合并处理器
builder.registerWriteHandler(new CellMergeStrategy(list, true));
}
if (CollUtil.isNotEmpty(options)) {
// 添加下拉框操作
builder.registerWriteHandler(new ExcelDownHandler(options));
}
// 添加下拉框操作
builder.registerWriteHandler(new ExcelDownHandler(options));
builder.doWrite(list);
}