We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在table/interface.d.ts文件中:
export interface TableRowSelection<T> { type?: RowSelectionType; selectedRowKeys?: string[] | number[]; onChange?: (selectedRowKeys: string[] | number[], selectedRows: Object[]) => void; getCheckboxProps?: (record: T) => Object; onSelect?: SelectionSelectFn<T>; onSelectMultiple?: (selected: boolean, selectedRows: Object[], changeRows: Object[]) => void; onSelectAll?: (selected: boolean, selectedRows: Object[], changeRows: Object[]) => void; onSelectInvert?: (selectedRows: Object[]) => void; selections?: SelectionItem[] | boolean; hideDefaultSelections?: boolean; fixed?: boolean; columnWidth?: string | number; selectWay?: TableSelectWay; columnTitle?: string | React.ReactNode; }
TableRowSelection已经有范型参数,但是onChange的参数类型声明中selectRows依然声明为Object[], 这里是出于什么考虑呢?
改成和T关联是不是好一点,比如Array或者extends T类似的?
The text was updated successfully, but these errors were encountered:
没啥特别考虑,欢迎 PR
Sorry, something went wrong.
No branches or pull requests
What problem does this feature solve?
在table/interface.d.ts文件中:
TableRowSelection已经有范型参数,但是onChange的参数类型声明中selectRows依然声明为Object[], 这里是出于什么考虑呢?
What does the proposed API look like?
改成和T关联是不是好一点,比如Array或者extends T类似的?
The text was updated successfully, but these errors were encountered: