style: update pagination props type

pull/6266/head^2
tangjinzhou 2023-02-14 14:06:14 +08:00
parent f6afd7fffc
commit 44e5d09f22
1 changed files with 1 additions and 4 deletions

View File

@ -27,10 +27,7 @@ export const paginationProps = () => ({
showSizeChanger: booleanType(),
pageSizeOptions: arrayType<(string | number)[]>(),
buildOptionText: functionType<(opt: { value: any }) => any>(),
showQuickJumper: someType<boolean | { goButton?: any }>(
[Boolean, Object],
undefined as boolean | { goButton?: any },
),
showQuickJumper: someType<boolean | { goButton?: any }>([Boolean, Object]),
showTotal: functionType<(total: number, range: [number, number]) => any>(),
size: stringType<'default' | 'small'>(),
simple: booleanType(),