Update table.ts (#2223)

兼容row key有可能为number的情况
This commit is contained in:
Aborn Jiang 2022-09-29 10:10:04 +08:00 committed by 蒋琴
parent dac9301af4
commit f1d42769ea
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ export interface TableActionType {
getSelectRows: <T = Recordable>() => T[];
clearSelectedRowKeys: () => void;
expandAll: () => void;
expandRows: (keys: string[]) => void;
expandRows: (keys: string[] | number[]) => void;
collapseAll: () => void;
scrollTo: (pos: string) => void; // pos: id | "top" | "bottom"
getSelectRowKeys: () => string[];