Unverified 提交 e05a40f6 作者: chengj 提交者: GitHub

feat: specify the position of Pagination in Table component (#1849)

* feat: table add pagination postion property

* feat: specify the postion of Pagination in Table
上级 ee85839b
......@@ -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[];
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论