fix(data-table): remove the incorrect fix of wrong col index

This commit is contained in:
07akioni 2024-12-29 22:36:11 +08:00
parent dd2e4aaa8f
commit b96dce5885

View File

@ -785,8 +785,8 @@ export default defineComponent({
const virtualXRowHeight = isVirtualX
? pxfy(heightForRow?.(rowData, actualRowIndex) || minRowHeight)
: undefined
const cells = iteratedCols.map((col, colIdx) => {
const colIndex = isVirtualX ? col.index : colIdx
const cells = iteratedCols.map((col) => {
const colIndex = col.index
if (displayedRowIndex in cordToPass) {
const cordOfRowToPass = cordToPass[displayedRowIndex]
const indexInCordOfRowToPass