mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(table): fix bug in render column structure (#1664)
Co-authored-by: winerlu <winerlu@tencent.com>
This commit is contained in:
@@ -214,7 +214,7 @@ export default defineComponent({
|
||||
render () {
|
||||
let children = []
|
||||
try {
|
||||
const renderDefault = this.$slots.default?.()
|
||||
const renderDefault = this.$slots.default?.({ row: {}, column: {}, $index: -1 })
|
||||
if (renderDefault instanceof Array) {
|
||||
for (const childNode of renderDefault) {
|
||||
if (childNode.type?.name === 'ElTableColumn' || childNode.shapeFlag !== 36) {
|
||||
|
||||
Reference in New Issue
Block a user