forked from p96170835/amis
修复 autoCombineCount 配置比实际 columns 多时的报错
This commit is contained in:
parent
1ee1d7556a
commit
183e253a63
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue