File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export interface CellProps<RecordType extends DefaultRecordType> {
2323 /** `column` index is the real show rowIndex */
2424 index ?: number ;
2525 /** the column index which cell in */
26- colIndex : number ;
26+ colIndex ? : number ;
2727 /** the index of the record. For the render(value, record, renderIndex) */
2828 renderIndex ?: number ;
2929 dataIndex ?: DataIndex < RecordType > ;
@@ -55,7 +55,6 @@ export interface CellProps<RecordType extends DefaultRecordType> {
5555 rowType ?: 'header' | 'body' | 'footer' ;
5656
5757 isSticky ?: boolean ;
58- setRef ?: React . Ref < HTMLTableCellElement > ;
5958}
6059
6160const getTitleFromCellRenderChildren = ( {
@@ -280,4 +279,6 @@ function Cell<RecordType>(
280279 ) ;
281280}
282281
283- export default React . memo ( React . forwardRef ( Cell ) ) ;
282+ export default React . memo ( React . forwardRef ( Cell ) ) as < RecordType > (
283+ props : CellProps < RecordType > & { ref ?: React . ForwardedRef < HTMLTableCellElement > } ,
284+ ) => React . JSX . Element ;
You can’t perform that action at this time.
0 commit comments