From 5bcccfd7567df713b75239f6dd916fa80dd3e281 Mon Sep 17 00:00:00 2001 From: LIUCHAO <50739490+Tsong-LC@users.noreply.github.com> Date: Fri, 16 Sep 2022 07:50:17 +0800 Subject: [PATCH] fix(components): [virtual-list] fix type error (#9780) --- packages/components/virtual-list/src/props.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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,