Commit ce0f528ba8950e6e34cc929069e89aa6fd09c9a9
Committed by
GitHub
1 parent
085929a9
chore<table>: fix type (#2528)
Showing
1 changed file
with
2 additions
and
1 deletions
src/components/Table/src/types/table.ts
... | ... | @@ -310,7 +310,8 @@ export interface BasicTableProps<T = any> { |
310 | 310 | * you need to add style .ant-table td { white-space: nowrap; }. |
311 | 311 | * @type object |
312 | 312 | */ |
313 | - scroll?: { x?: number | true; y?: number }; | |
313 | + scroll?: { x?: number | string | true; y?: number | string }; | |
314 | + | |
314 | 315 | |
315 | 316 | /** |
316 | 317 | * Whether to show table header | ... | ... |