From ce0f528ba8950e6e34cc929069e89aa6fd09c9a9 Mon Sep 17 00:00:00 2001 From: luocong2016 Date: Wed, 15 Feb 2023 11:43:23 +0800 Subject: [PATCH] chore: fix type (#2528) --- src/components/Table/src/types/table.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Table/src/types/table.ts b/src/components/Table/src/types/table.ts index 3f0f40af..e34a3a98 100644 --- a/src/components/Table/src/types/table.ts +++ b/src/components/Table/src/types/table.ts @@ -310,7 +310,8 @@ export interface BasicTableProps { * you need to add style .ant-table td { white-space: nowrap; }. * @type object */ - scroll?: { x?: number | true; y?: number }; + scroll?: { x?: number | string | true; y?: number | string }; + /** * Whether to show table header