diff --git a/src/components/Table/src/types/pagination.ts b/src/components/Table/src/types/pagination.ts index fd2ecbe31f2e5345eee644065d493e06a5865fee..c705f33f9ae89c8912e0a3dae467b10da76f8744 100644 --- a/src/components/Table/src/types/pagination.ts +++ b/src/components/Table/src/types/pagination.ts @@ -7,9 +7,18 @@ interface PaginationRenderProps { originalElement: any; } +type PaginationPositon = + | 'topLeft' + | 'topCenter' + | 'topRight' + | 'bottomLeft' + | 'bottomCenter' + | 'bottomRight'; + export declare class PaginationConfig extends Pagination { - position?: 'top' | 'bottom' | 'both'; + position?: PaginationPositon[]; } + export interface PaginationProps { /** * total number of data items @@ -96,4 +105,11 @@ export interface PaginationProps { * @type Function */ itemRender?: (props: PaginationRenderProps) => VNodeChild | JSX.Element; + + /** + * specify the position of Pagination + * @default ['bottomRight'] + * @type string[] + */ + position?: PaginationPositon[]; }