Browse Source

chore(component): fix Table rowSelection type hint

main
刘凯 1 year ago
parent
commit
2c37d616d8
  1. 5
      src/components/Table/src/types/table.ts

5
src/components/Table/src/types/table.ts

@ -26,7 +26,7 @@ export interface TableRowSelection<T = any> extends ITableRowSelection {
* Callback executed when select/deselect one row * Callback executed when select/deselect one row
* @type Function * @type Function
*/ */
onSelect?: (record: T, selected: boolean, selectedRows: object[], nativeEvent: Event) => any onSelect?: (record: T, selected: boolean, selectedRows: T[], nativeEvent: Event) => any
/** /**
* Callback executed when select/deselect all rows * Callback executed when select/deselect all rows
@ -307,9 +307,8 @@ export interface BasicTableProps<T = Recordable<any>> {
/** /**
* Row selection config * Row selection config
* @type object
*/ */
rowSelection?: TableRowSelection rowSelection?: TableRowSelection<T>
/** /**
* Set horizontal or vertical scrolling, can also be used to specify the width and height of the scroll area. * Set horizontal or vertical scrolling, can also be used to specify the width and height of the scroll area.