mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-12 10:45:10 +08:00
fix(table): fix bug caused by dynamic rendering (#1640)
fix #1626 Co-authored-by: winerlu <winerlu@tencent.com>
This commit is contained in:
parent
8ea4c16e34
commit
6822cafda8
@ -9,6 +9,7 @@ import {
|
||||
import { cellForced, defaultRenderCell, treeCellPrefix } from '../config'
|
||||
import { parseWidth, parseMinWidth } from '../util'
|
||||
import { TableColumn, TableColumnCtx } from '../table.type'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
|
||||
function useRender(props: TableColumnCtx, slots, owner: ComputedRef<any>) {
|
||||
const instance = (getCurrentInstance() as unknown) as TableColumn
|
||||
@ -127,7 +128,7 @@ function useRender(props: TableColumnCtx, slots, owner: ComputedRef<any>) {
|
||||
}
|
||||
}
|
||||
checkSubColumn(children)
|
||||
return h('div', props, [prefix, children])
|
||||
return h('div', props, [prefix, cloneDeep(children)])
|
||||
}
|
||||
}
|
||||
return column
|
||||
|
Loading…
Reference in New Issue
Block a user