From f1d42769ea586bbce67d655ba86b09f4a2a48a5f Mon Sep 17 00:00:00 2001 From: Aborn Jiang Date: Thu, 29 Sep 2022 10:10:04 +0800 Subject: [PATCH] Update table.ts (#2223) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 兼容row key有可能为number的情况 --- src/components/Table/src/types/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Table/src/types/table.ts b/src/components/Table/src/types/table.ts index ad1624976..24b177b2a 100644 --- a/src/components/Table/src/types/table.ts +++ b/src/components/Table/src/types/table.ts @@ -87,7 +87,7 @@ export interface TableActionType { getSelectRows: () => 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[];