Skip to content

Commit

Permalink
fix(comp:table): rowSpan and colSpan param error (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 authored Apr 24, 2024
1 parent 659b1f7 commit 2aebaec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/table/src/main/MainTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export default defineComponent({
} else if (data?.length) {
const rows: VNodeChild[] = []
data.forEach((item, rowIndex) => {
const cells = renderBodyCells(columns ?? [], item, rowIndex)
const cells = renderBodyCells(columns ?? [], item.record, rowIndex)
rows.push(
...convertArray(
renderBodyRow(item, columns, rowIndex, slots, expandable.value, mergedPrefixCls.value, cells),
Expand Down Expand Up @@ -274,7 +274,7 @@ export default defineComponent({
item,
index,
rowIndex,
}) => renderBodyCell(item, row, rowIndex, index === row.data.length - 1)
}) => renderBodyCell(item, row.record, rowIndex, index === row.data.length - 1)

const contentRender: VirtualContentRenderFn = (children, { renderedData }) => {
const columns = flattedData.value.length
Expand Down

0 comments on commit 2aebaec

Please sign in to comment.