Fixed #1323 - Dynamic columns not showing in Datatable with vue 3.1.1
parent
e21906e672
commit
a478ace3fb
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue