mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix #1919 Co-authored-by: winerlu <winerlu@tencent.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
watch,
|
||||
onUnmounted,
|
||||
onUpdated,
|
||||
VNode,
|
||||
} from 'vue'
|
||||
import { hColgroup } from '../h-helper'
|
||||
import useLayoutObserver from '../layout-observer'
|
||||
@@ -74,8 +75,13 @@ export default defineComponent({
|
||||
[
|
||||
hColgroup(this.store.states.columns.value),
|
||||
h('tbody', {}, [
|
||||
data.reduce((acc, row) => {
|
||||
return acc.concat(this.wrappedRowRender(row, acc.length))
|
||||
data.reduce((acc: VNode[], row) => {
|
||||
return acc.concat(
|
||||
this.wrappedRowRender(
|
||||
row,
|
||||
acc.filter(item => typeof item.key === 'number').length,
|
||||
),
|
||||
)
|
||||
}, []),
|
||||
]),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user