Browse Source

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

* Omit 'checked' for getCheckboxProps return type

* Update interface.tsx

* Update interface.tsx
pull/22423/head
Rainy 5 years ago
committed by GitHub
parent
commit
53e9ca20b6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/table/interface.tsx

2
components/table/interface.tsx

@ -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 */

Loading…
Cancel
Save