fix: Omit 'checked' for getCheckboxProps return type (#22391)

* Omit 'checked' for getCheckboxProps return type

* Update interface.tsx

* Update interface.tsx
This commit is contained in:
Rainy 2020-03-19 23:58:25 +08:00 committed by GitHub
parent 9e3ddb22ff
commit 53e9ca20b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ export interface TableRowSelection<T> {
type?: RowSelectionType;
selectedRowKeys?: Key[];
onChange?: (selectedRowKeys: Key[], selectedRows: T[]) => void;
getCheckboxProps?: (record: T) => Partial<CheckboxProps>;
getCheckboxProps?: (record: T) => Partial<Omit<CheckboxProps, 'checked' | 'defaultChecked'>>;
onSelect?: SelectionSelectFn<T>;
onSelectMultiple?: (selected: boolean, selectedRows: T[], changeRows: T[]) => void;
/** @deprecated This function is meaningless and should use `onChange` instead */