@arim-aisdc/public-components 2.3.92 → 2.3.94

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.
@@ -17,7 +17,7 @@ export declare const foramtBaseInfoField: (data: any, dataField: BaseInfoFieldTy
17
17
  value: any;
18
18
  field: string;
19
19
  label?: string;
20
- text: string | Element | JSX.Element;
20
+ text: string | JSX.Element | Element;
21
21
  units?: string;
22
22
  width?: string;
23
23
  labelWidth?: string;
@@ -0,0 +1,48 @@
1
+ import React from "react";
2
+ import { TableMaxColumnType } from "../../type";
3
+ export type PageFetcherConfig<T = any> = {
4
+ apiFn: (params: {
5
+ skipCount: number;
6
+ maxResultCount: number;
7
+ }) => Promise<any>;
8
+ extractItems: (response: any) => T[];
9
+ extractTotalCount?: (response: any) => number;
10
+ extraParams?: Record<string, any>;
11
+ totalCount?: number;
12
+ initialPageSize?: number;
13
+ maxConcurrent?: number;
14
+ pageSize?: number;
15
+ retryCount?: number;
16
+ };
17
+ type ExportProps = {
18
+ tableTitle?: string;
19
+ canExport: boolean;
20
+ columns: TableMaxColumnType[];
21
+ datas?: any[];
22
+ exportConfig?: {
23
+ /**导出文件名称 */
24
+ fileName?: string;
25
+ /**导出sheet名称 */
26
+ sheetName?: string;
27
+ /**是否导出合计行 */
28
+ isIncludeTotalRow?: boolean;
29
+ /**根据接口获取导出数据,函数返回值是需要导出的数据 */
30
+ getExportDataList?: (params?: any) => Promise<any[]>;
31
+ pageFetcher: PageFetcherConfig;
32
+ };
33
+ hasTotalRow?: boolean;
34
+ totalDatas?: any[];
35
+ };
36
+ export type ExportOptions = {
37
+ /**导出文件名称 */
38
+ fileName?: string;
39
+ /**导出sheet名称 */
40
+ sheetName?: string;
41
+ /**是否导出合计行 */
42
+ isIncludeTotalRow?: boolean;
43
+ /**根据接口获取导出数据,函数返回值是需要导出的数据 */
44
+ getExportDataList?: (params?: any) => Promise<any[]>;
45
+ pageFetcher: PageFetcherConfig;
46
+ };
47
+ export declare const ExportTableData: React.NamedExoticComponent<ExportProps>;
48
+ export {};