Commit d1bb538b374e2803801fe48b0ad67f606f4375be
Committed by
GitHub

Merge pull request #4990 from kindy/issue-3472-fix-table-columns-infinite-loop
fix #3472 table columns infinite loop
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/table/table.vue
... | ... | @@ -833,7 +833,7 @@ |
833 | 833 | // 修改列,设置一个隐藏的 id,便于后面的多级表头寻找对应的列,否则找不到 |
834 | 834 | makeColumnsId (columns) { |
835 | 835 | return columns.map(item => { |
836 | - if ('children' in item) item.children = this.makeColumnsId(item.children); | |
836 | + if ('children' in item) this.makeColumnsId(item.children); | |
837 | 837 | item.__id = getRandomStr(6); |
838 | 838 | return item; |
839 | 839 | }); | ... | ... |