From a478ace3fb971b682a7f7624364b6c9cb9b15eaa Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Fri, 11 Jun 2021 15:12:29 +0300 Subject: [PATCH] Fixed #1323 - Dynamic columns not showing in Datatable with vue 3.1.1 --- src/components/datatable/DataTable.vue | 2 +- src/components/treetable/TreeTable.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 9bc5c3d66..eddbd7c2e 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -1690,7 +1690,7 @@ export default { } children.forEach(child => { - if (child.dynamicChildren && child.children instanceof Array) + if (child.children && child.children instanceof Array) cols = [...cols, ...child.children]; else if (child.type.name === 'Column') cols.push(child); diff --git a/src/components/treetable/TreeTable.vue b/src/components/treetable/TreeTable.vue index f07e7b424..41c2509c3 100755 --- a/src/components/treetable/TreeTable.vue +++ b/src/components/treetable/TreeTable.vue @@ -805,7 +805,7 @@ export default { let children = this.$slots.default(); children.forEach(child => { - if (child.dynamicChildren) + if (child.children && child.children instanceof Array) cols = [...cols, ...child.children]; else if (child.type.name === 'Column') cols.push(child);