修复 autoCombineCount 配置比实际 columns 多时的报错

This commit is contained in:
liaoxuezhi 2019-05-14 16:29:03 +08:00
parent f7b3c30259
commit 59c09ca3c4
1 changed files with 5 additions and 0 deletions

View File

@ -427,6 +427,11 @@ export const TableStore = iRendererStore
for (let i = 0; i < maxCount; i++) { for (let i = 0; i < maxCount; i++) {
const column = columns[i]; const column = columns[i];
// maxCount 可能比实际配置的 columns 还有多。
if (!column) {
break;
}
if ('__' === column.type.substring(0, 2)) { if ('__' === column.type.substring(0, 2)) {
maxCount++; maxCount++;
continue; continue;