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 => {
|
children.forEach(child => {
|
||||||
if (child.dynamicChildren && child.children instanceof Array)
|
if (child.children && child.children instanceof Array)
|
||||||
cols = [...cols, ...child.children];
|
cols = [...cols, ...child.children];
|
||||||
else if (child.type.name === 'Column')
|
else if (child.type.name === 'Column')
|
||||||
cols.push(child);
|
cols.push(child);
|
||||||
|
|
|
@ -805,7 +805,7 @@ export default {
|
||||||
let children = this.$slots.default();
|
let children = this.$slots.default();
|
||||||
|
|
||||||
children.forEach(child => {
|
children.forEach(child => {
|
||||||
if (child.dynamicChildren)
|
if (child.children && child.children instanceof Array)
|
||||||
cols = [...cols, ...child.children];
|
cols = [...cols, ...child.children];
|
||||||
else if (child.type.name === 'Column')
|
else if (child.type.name === 'Column')
|
||||||
cols.push(child);
|
cols.push(child);
|
||||||
|
|
Loading…
Reference in New Issue