diff --git a/packages/components/virtual-list/src/props.ts b/packages/components/virtual-list/src/props.ts index f1fb3aa476..411de5118e 100644 --- a/packages/components/virtual-list/src/props.ts +++ b/packages/components/virtual-list/src/props.ts @@ -1,4 +1,3 @@ -// @ts-nocheck import { buildProp, buildProps, @@ -143,7 +142,13 @@ export const virtualizedGridProps = buildProps({ initScrollTop: initScrollOffset, itemKey: { type: definePropType(Function), - default: ({ columnIndex, rowIndex }) => `${rowIndex}:${columnIndex}`, + default: ({ + columnIndex, + rowIndex, + }: { + columnIndex: number + rowIndex: number + }) => `${rowIndex}:${columnIndex}`, }, rowCache: cache, rowHeight: itemSize,