@arim-aisdc/public-components 2.3.46 → 2.3.47
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.
|
@@ -232,11 +232,12 @@ var UploadImg = function UploadImg(_ref) {
|
|
|
232
232
|
message.success('上传成功');
|
|
233
233
|
if (item !== null && item !== void 0 && item.multiple) {
|
|
234
234
|
onChange === null || onChange === void 0 || onChange(fileList.map(function (item) {
|
|
235
|
-
|
|
235
|
+
var _item$response;
|
|
236
|
+
return (item === null || item === void 0 || (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.fileId) || item.response.id;
|
|
236
237
|
}));
|
|
237
238
|
} else {
|
|
238
|
-
var _file$response;
|
|
239
|
-
onChange === null || onChange === void 0 || onChange(file === null || file === void 0 || (_file$response = file.response) === null || _file$response === void 0 ? void 0 : _file$response.id);
|
|
239
|
+
var _file$response, _file$response2;
|
|
240
|
+
onChange === null || onChange === void 0 || onChange((file === null || file === void 0 || (_file$response = file.response) === null || _file$response === void 0 ? void 0 : _file$response.fileId) || (file === null || file === void 0 || (_file$response2 = file.response) === null || _file$response2 === void 0 ? void 0 : _file$response2.id));
|
|
240
241
|
}
|
|
241
242
|
break;
|
|
242
243
|
case 'error':
|
|
@@ -245,7 +246,7 @@ var UploadImg = function UploadImg(_ref) {
|
|
|
245
246
|
case 'removed':
|
|
246
247
|
if (item !== null && item !== void 0 && item.multiple) {
|
|
247
248
|
onChange === null || onChange === void 0 || onChange(fileList.map(function (item) {
|
|
248
|
-
return item.response.id;
|
|
249
|
+
return item.response.fileId || item.response.id;
|
|
249
250
|
}));
|
|
250
251
|
} else {
|
|
251
252
|
onChange === null || onChange === void 0 || onChange('');
|
|
@@ -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) => 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) =>
|
|
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) => 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;
|
|
@@ -24,7 +24,6 @@ var ExportComp = function ExportComp(_ref) {
|
|
|
24
24
|
var _useTableExport = useTableExport(),
|
|
25
25
|
exporting = _useTableExport.exporting,
|
|
26
26
|
exportTableData = _useTableExport.exportTableData;
|
|
27
|
-
console.log(columns, datas, '4444555555');
|
|
28
27
|
var handleExport = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29
28
|
var _ref3, _exportConfig$fileNam;
|
|
30
29
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|