@arim-aisdc/public-components 2.3.92 → 2.3.95
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.
- package/dist/components/TableMax/components/ColumnSort/customSortFns.d.ts +8 -8
- package/dist/components/TableMax/components/Export/index.d.ts +37 -3
- package/dist/components/TableMax/components/Export/index.js +768 -23
- package/dist/components/TableMax/components/Export/useTableExport.d.ts +9 -11
- package/dist/components/TableMax/components/Export/useTableExport.js +438 -127
- package/dist/components/TableMax/type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { TableMaxColumnType } from '../../type';
|
|
2
|
+
export interface StreamExportOptions {
|
|
3
3
|
fileName?: string;
|
|
4
|
-
/**导出sheet名称 */
|
|
5
4
|
sheetName?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
maxConcurrent?: number;
|
|
6
|
+
batchSize?: number;
|
|
7
|
+
onProgress?: (current: number, total: number, percent: number) => void;
|
|
8
|
+
onBatchComplete?: (batchIndex: number, totalBatches: number) => void;
|
|
10
9
|
}
|
|
11
|
-
/**
|
|
12
|
-
* 表格导出Hook - 专门适配你的列配置结构
|
|
13
|
-
*/
|
|
14
10
|
export declare const useTableExport: () => {
|
|
15
11
|
exporting: boolean;
|
|
16
|
-
exportTableData: (data: any[], columns:
|
|
12
|
+
exportTableData: (data: any[], columns: TableMaxColumnType[], hasTotalRow: boolean, totalDatas: any[], customOptions: any) => Promise<void>;
|
|
13
|
+
streamExport: (getBatchData: (skipCount: number, batchSize: number) => Promise<any[]>, totalCount: number, columns: TableMaxColumnType[], options: StreamExportOptions, hasTotalRow?: boolean, totalDatas?: any[], retryCount?: number) => Promise<void>;
|
|
14
|
+
cancelExport: () => void;
|
|
17
15
|
};
|