@arim-aisdc/public-components 2.3.45 → 2.3.46
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 |
|
|
20
|
+
text: string | Element | JSX.Element;
|
|
21
21
|
units?: string;
|
|
22
22
|
width?: string;
|
|
23
23
|
labelWidth?: string;
|
|
@@ -107,8 +107,7 @@ var TableMax = function TableMax(_ref) {
|
|
|
107
107
|
canSetting = _ref$canSetting === void 0 ? true : _ref$canSetting,
|
|
108
108
|
_ref$canFilter = _ref.canFilter,
|
|
109
109
|
canFilter = _ref$canFilter === void 0 ? true : _ref$canFilter,
|
|
110
|
-
|
|
111
|
-
canExport = _ref$canExport === void 0 ? true : _ref$canExport,
|
|
110
|
+
canExport = _ref.canExport,
|
|
112
111
|
_ref$defaultEnableFil = _ref.defaultEnableFilters,
|
|
113
112
|
defaultEnableFilters = _ref$defaultEnableFil === void 0 ? false : _ref$defaultEnableFil,
|
|
114
113
|
_ref$defaultHeaderRow = _ref.defaultHeaderRowNum,
|
|
@@ -223,8 +222,10 @@ var TableMax = function TableMax(_ref) {
|
|
|
223
222
|
var _ref2 = tableMax || {},
|
|
224
223
|
globalPageSizeOptions = _ref2.pageSizeOptions,
|
|
225
224
|
cacheMaxAge = _ref2.cacheMaxAge,
|
|
226
|
-
openMemo = _ref2.openMemo
|
|
225
|
+
openMemo = _ref2.openMemo,
|
|
226
|
+
globalCanExport = _ref2.canExport;
|
|
227
227
|
return {
|
|
228
|
+
globalCanExport: globalCanExport,
|
|
228
229
|
globalPageSizeOptions: globalPageSizeOptions,
|
|
229
230
|
cacheMaxAge: cacheMaxAge,
|
|
230
231
|
openMemo: openMemo
|
|
@@ -1173,7 +1174,7 @@ var TableMax = function TableMax(_ref) {
|
|
|
1173
1174
|
})
|
|
1174
1175
|
}), /*#__PURE__*/_jsx(ExportTableData, {
|
|
1175
1176
|
tableTitle: tableTitle,
|
|
1176
|
-
canExport: canExport,
|
|
1177
|
+
canExport: canExport !== null && canExport !== void 0 ? canExport : tableMaxConfig === null || tableMaxConfig === void 0 ? void 0 : tableMaxConfig.globalCanExport,
|
|
1177
1178
|
hasTotalRow: hasTotalRow,
|
|
1178
1179
|
totalDatas: totalDatas,
|
|
1179
1180
|
columns: tableColumns,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TableMaxColumnType } from "../../type";
|
|
2
|
-
export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
3
|
-
export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
4
|
-
export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
5
|
-
export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
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;
|
|
6
6
|
declare const customSortFns: {
|
|
7
|
-
numberSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
8
|
-
stringSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
9
|
-
timeSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
10
|
-
numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) =>
|
|
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;
|
|
11
11
|
};
|
|
12
12
|
export default customSortFns;
|
|
13
13
|
export type SortFnType = keyof typeof customSortFns | undefined;
|