diff --git a/src/components/datatable/TableFooter.vue b/src/components/datatable/TableFooter.vue index 7f56a4fa45..4447837d37 100755 --- a/src/components/datatable/TableFooter.vue +++ b/src/components/datatable/TableFooter.vue @@ -41,7 +41,7 @@ export default { row.child.$scopedSlots.default().forEach(child => { if (child.child && child.child.children && child.child.children instanceof Array) cols = [...cols, ...child.child.children]; - else if (child.componentOptions.tag === 'Column') + else if (child.componentOptions && child.componentOptions.tag === 'Column') cols.push(child); }); diff --git a/src/components/datatable/TableHeader.vue b/src/components/datatable/TableHeader.vue index 1f9b269d07..259f1aa698 100755 --- a/src/components/datatable/TableHeader.vue +++ b/src/components/datatable/TableHeader.vue @@ -133,10 +133,10 @@ export default { let cols = []; if (row.child && row.child.$scopedSlots.default) { - row.child.$scopedSlots.default().forEach(child => { + row.child.$scopedSlots.default().forEach(child => {console.log(child) if (child.child && child.child.children && child.child.children instanceof Array) cols = [...cols, ...child.child.children]; - else if (child.componentOptions.tag === 'Column') + else if (child.componentOptions && child.componentOptions.tag === 'Column') cols.push(child); });