Commit f1d42769ea586bbce67d655ba86b09f4a2a48a5f

Authored by Aborn Jiang
Committed by 蒋琴
1 parent dac9301a

Update table.ts (#2223)

兼容row key有可能为number的情况
src/components/Table/src/types/table.ts
@@ -87,7 +87,7 @@ export interface TableActionType { @@ -87,7 +87,7 @@ export interface TableActionType {
87 getSelectRows: <T = Recordable>() => T[]; 87 getSelectRows: <T = Recordable>() => T[];
88 clearSelectedRowKeys: () => void; 88 clearSelectedRowKeys: () => void;
89 expandAll: () => void; 89 expandAll: () => void;
90 - expandRows: (keys: string[]) => void; 90 + expandRows: (keys: string[] | number[]) => void;
91 collapseAll: () => void; 91 collapseAll: () => void;
92 scrollTo: (pos: string) => void; // pos: id | "top" | "bottom" 92 scrollTo: (pos: string) => void; // pos: id | "top" | "bottom"
93 getSelectRowKeys: () => string[]; 93 getSelectRowKeys: () => string[];