fixed(切换条件不正确):

1.提交时,修改了切换条件做测试,未撤回
This commit is contained in:
Emil.Zhang 2023-05-06 11:48:53 +08:00
parent 110df3a175
commit 03131f080a

View File

@ -131,7 +131,7 @@ public class ExcelDownHandler implements SheetWriteHandler {
// 如果指定了列下标以指定的为主 // 如果指定了列下标以指定的为主
index = fields[i].getDeclaredAnnotation(ExcelProperty.class).index(); index = fields[i].getDeclaredAnnotation(ExcelProperty.class).index();
} }
if (options.size() > 2) { if (options.size() > 20) {
// 这里限制如果可选项大于20则使用额外表形式 // 这里限制如果可选项大于20则使用额外表形式
dropDownWithSheet(helper, workbook, sheet, index, options); dropDownWithSheet(helper, workbook, sheet, index, options);
} else { } else {