gov-ui-core 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,6 +4,11 @@ export interface IPaginationProps {
|
|
|
4
4
|
totalSize: number;
|
|
5
5
|
defaultPageSize: number;
|
|
6
6
|
pageOption: number[];
|
|
7
|
+
sortOption: string[];
|
|
8
|
+
sortable: boolean;
|
|
9
|
+
leftContents?: React.ReactNode;
|
|
10
|
+
refreshTime?: boolean;
|
|
11
|
+
loadData?: (paginationState: any) => void;
|
|
7
12
|
onChangeTableState: (tableState: {
|
|
8
13
|
pageSize: number;
|
|
9
14
|
currentPage: number;
|
|
@@ -14,5 +19,10 @@ export interface IPaginationProps {
|
|
|
14
19
|
export interface PaginationMethods {
|
|
15
20
|
changeCurrentPage: (page: number) => void;
|
|
16
21
|
}
|
|
22
|
+
export type OptionType = {
|
|
23
|
+
label?: React.ReactNode;
|
|
24
|
+
value?: string;
|
|
25
|
+
onClick?: (item: OptionType) => void;
|
|
26
|
+
};
|
|
17
27
|
declare const Pagination: React.ForwardRefExoticComponent<IPaginationProps & React.RefAttributes<PaginationMethods>>;
|
|
18
28
|
export default Pagination;
|
|
@@ -4,6 +4,11 @@ import type { TableLocale } from 'antd/lib/table/interface';
|
|
|
4
4
|
export interface ITableProps<RecordType extends object = any> extends Omit<TableProps<RecordType>, 'pagination'> {
|
|
5
5
|
totalSize?: number;
|
|
6
6
|
pageOption?: number[];
|
|
7
|
+
sortOption?: string[];
|
|
8
|
+
sortable?: boolean;
|
|
9
|
+
leftContents?: React.ReactNode;
|
|
10
|
+
refreshTime?: boolean;
|
|
11
|
+
loadData?: (paginationState: any) => void;
|
|
7
12
|
defaultPageSize?: number;
|
|
8
13
|
pagination?: boolean;
|
|
9
14
|
useOrigin?: boolean;
|
|
@@ -9,6 +9,7 @@ declare const TableLoadingBox: import("styled-components").StyledComponent<"div"
|
|
|
9
9
|
}, never>;
|
|
10
10
|
declare const CustomPagination: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
11
11
|
border?: boolean | undefined;
|
|
12
|
+
leftContents?: boolean | undefined;
|
|
12
13
|
}, never>;
|
|
13
14
|
declare const PaginationItemBox: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
|
|
14
15
|
active?: boolean | undefined;
|