mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-12 12:25:22 +08:00
fix(components): [virtual-list] fix type error (#9780)
This commit is contained in:
parent
4d1cb2dbe5
commit
5bcccfd756
@ -1,4 +1,3 @@
|
||||
// @ts-nocheck
|
||||
import {
|
||||
buildProp,
|
||||
buildProps,
|
||||
@ -143,7 +142,13 @@ export const virtualizedGridProps = buildProps({
|
||||
initScrollTop: initScrollOffset,
|
||||
itemKey: {
|
||||
type: definePropType<GridItemKeyGetter>(Function),
|
||||
default: ({ columnIndex, rowIndex }) => `${rowIndex}:${columnIndex}`,
|
||||
default: ({
|
||||
columnIndex,
|
||||
rowIndex,
|
||||
}: {
|
||||
columnIndex: number
|
||||
rowIndex: number
|
||||
}) => `${rowIndex}:${columnIndex}`,
|
||||
},
|
||||
rowCache: cache,
|
||||
rowHeight: itemSize,
|
||||
|
Loading…
Reference in New Issue
Block a user