vxe-table 4.7.62 → 4.7.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -403,7 +403,7 @@ export function rowToVisible ($xeTable: VxeTableConstructor & VxeTablePrivateMet
403
403
  } else {
404
404
  // 如果是虚拟渲染跨行滚动
405
405
  if (scrollYLoad) {
406
- return $xeTable.scrollTo(null, (afterFullData.indexOf(row) - 1) * scrollYStore.rowHeight)
406
+ return $xeTable.scrollTo(null, ($xeTable.findRowIndexOf(afterFullData, row) - 1) * scrollYStore.rowHeight)
407
407
  }
408
408
  }
409
409
  }
@@ -438,10 +438,11 @@ export function colToVisible ($xeTable: VxeTableConstructor & VxeTablePrivateMet
438
438
  if (scrollXLoad) {
439
439
  let scrollLeft = 0
440
440
  for (let index = 0; index < visibleColumn.length; index++) {
441
- if (visibleColumn[index] === column) {
441
+ const currCol = visibleColumn[index]
442
+ if (currCol === column || currCol.id === column.id) {
442
443
  break
443
444
  }
444
- scrollLeft += visibleColumn[index].renderWidth
445
+ scrollLeft += currCol.renderWidth
445
446
  }
446
447
  return $xeTable.scrollTo(scrollLeft)
447
448
  }