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

This commit is contained in:
liaoxuezhi 2019-05-14 16:29:03 +08:00
parent 1ee1d7556a
commit 183e253a63
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;