feat: specify the position of Pagination in Table component (#1849)
* feat: table add pagination postion property * feat: specify the postion of Pagination in Table
This commit is contained in:
parent
ee85839ba3
commit
e05a40f680
|
|
@ -7,9 +7,18 @@ interface PaginationRenderProps {
|
||||||
originalElement: any;
|
originalElement: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PaginationPositon =
|
||||||
|
| 'topLeft'
|
||||||
|
| 'topCenter'
|
||||||
|
| 'topRight'
|
||||||
|
| 'bottomLeft'
|
||||||
|
| 'bottomCenter'
|
||||||
|
| 'bottomRight';
|
||||||
|
|
||||||
export declare class PaginationConfig extends Pagination {
|
export declare class PaginationConfig extends Pagination {
|
||||||
position?: 'top' | 'bottom' | 'both';
|
position?: PaginationPositon[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PaginationProps {
|
export interface PaginationProps {
|
||||||
/**
|
/**
|
||||||
* total number of data items
|
* total number of data items
|
||||||
|
|
@ -96,4 +105,11 @@ export interface PaginationProps {
|
||||||
* @type Function
|
* @type Function
|
||||||
*/
|
*/
|
||||||
itemRender?: (props: PaginationRenderProps) => VNodeChild | JSX.Element;
|
itemRender?: (props: PaginationRenderProps) => VNodeChild | JSX.Element;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* specify the position of Pagination
|
||||||
|
* @default ['bottomRight']
|
||||||
|
* @type string[]
|
||||||
|
*/
|
||||||
|
position?: PaginationPositon[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue