1
0
Эх сурвалжийг харах

Update table.ts (#2223)

兼容row key有可能为number的情况
Aborn Jiang 2 жил өмнө
parent
commit
f1d42769ea

+ 1 - 1
src/components/Table/src/types/table.ts

@@ -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[];