@arim-aisdc/public-components 2.3.94 → 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.
@@ -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 | JSX.Element | Element;
20
+ text: string | Element | JSX.Element;
21
21
  units?: string;
22
22
  width?: string;
23
23
  labelWidth?: string;
@@ -1,13 +1,13 @@
1
1
  import { TableMaxColumnType } from "../../type";
2
- export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
3
- export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
4
- export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
5
- export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
2
+ export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
3
+ export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
4
+ export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
5
+ export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
6
6
  declare const customSortFns: {
7
- numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
8
- stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
9
- timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
10
- numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
7
+ numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
8
+ stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
9
+ timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
10
+ numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
11
11
  };
12
12
  export default customSortFns;
13
13
  export type SortFnType = keyof typeof customSortFns | undefined;
@@ -65,7 +65,7 @@ var defaultApplyCellLogic = function defaultApplyCellLogic(value, columnId, orig
65
65
  }
66
66
  return value !== null && value !== void 0 ? value : '';
67
67
  };
68
- var EnableExportColumnTypeList = [ColumnType.Selection, ColumnType.Drag, ColumnType.PlaceHolder, ColumnType.Expander];
68
+ var EnableExportColumnTypeList = [ColumnType.Selection, ColumnType.Drag, ColumnType.PlaceHolder, ColumnType.Expander, ColumnType.Index];
69
69
  function fetchWithRetry(_x) {
70
70
  return _fetchWithRetry.apply(this, arguments);
71
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "2.3.94",
3
+ "version": "2.3.95",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,48 +0,0 @@
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 {};