浏览代码

Update table.ts (#2223)

兼容row key有可能为number的情况
Aborn Jiang 2 年之前
父节点
当前提交
f1d42769ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  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[];