Browse Source

Update table.ts (#2223)

兼容row key有可能为number的情况
Aborn Jiang 2 years ago
parent
commit
f1d42769ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Table/src/types/table.ts

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