Commit 76965bf17549ccfaeb681c120a7c4ee935022a99
1 parent
eaddbfb0
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 | }); | ... | ... |