mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-05 11:21:11 +08:00
fix(table): fix table column rerendered whenever table updates
- Fix table column rerendered whenever table updates
This commit is contained in:
parent
634448d756
commit
cc988f9ac1
@ -101,11 +101,13 @@ function useRender(props: TableBodyProps) {
|
||||
}
|
||||
}
|
||||
}
|
||||
const key = `${$index},${cellIndex}`
|
||||
return h(
|
||||
'td',
|
||||
{
|
||||
style: getCellStyle($index, cellIndex, row, column),
|
||||
class: getCellClass($index, cellIndex, row, column),
|
||||
key,
|
||||
rowspan,
|
||||
colspan,
|
||||
onMouseenter: $event => handleCellMouseEnter($event, { ...row, tooltipEffect }),
|
||||
|
Loading…
Reference in New Issue
Block a user