fix: about custom extension of table column (#3437)

This commit is contained in:
Alan Wang 2021-10-11 16:13:29 +08:00 committed by GitHub
parent c23053a66a
commit d36ef9d784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,10 @@ export default defineComponent({
})
if (renderDefault instanceof Array) {
for (const childNode of renderDefault) {
if (childNode.type?.name === 'ElTableColumn') {
if (
childNode.type?.name === 'ElTableColumn' ||
childNode.shapeFlag & 2
) {
children.push(childNode)
} else if (
childNode.type === Fragment &&