mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix #1572 Co-authored-by: winerlu <winerlu@tencent.com>
This commit is contained in:
@@ -217,7 +217,7 @@ export default defineComponent({
|
||||
const renderDefault = this.$slots.default?.()
|
||||
if (renderDefault instanceof Array) {
|
||||
for (const childNode of renderDefault) {
|
||||
if (childNode.type?.name === 'ElTableColumn') {
|
||||
if (childNode.type?.name === 'ElTableColumn' || childNode.shapeFlag !== 36) {
|
||||
children.push(childNode)
|
||||
} else if (childNode.type === Fragment && childNode.children instanceof Array) {
|
||||
renderDefault.push(...childNode.children)
|
||||
|
||||
Reference in New Issue
Block a user