@zat-design/sisyphus-react 3.8.0-beat.13 → 3.8.0-beat.14
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/es/ProForm/components/FormFooter/index.js +6 -4
- package/es/ProTable/components/FormatColumn/index.d.ts +1 -2
- package/es/ProTable/components/FormatColumn/index.js +9 -12
- package/es/ProTable/index.js +1 -11
- package/es/ProTable/propsType.d.ts +0 -4
- package/lib/ProForm/components/FormFooter/index.js +5 -3
- package/lib/ProTable/components/FormatColumn/index.d.ts +1 -2
- package/lib/ProTable/components/FormatColumn/index.js +9 -12
- package/lib/ProTable/index.js +1 -11
- package/lib/ProTable/propsType.d.ts +0 -4
- package/package.json +1 -1
- package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +0 -241
- package/coverage/lcov-report/src/.umi/core/history.ts.html +0 -148
- package/coverage/lcov-report/src/.umi/core/index.html +0 -206
- package/coverage/lcov-report/src/.umi/core/plugin.ts.html +0 -109
- package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +0 -160
- package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +0 -97
- package/coverage/lcov-report/src/.umi/core/routes.ts.html +0 -26050
- package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +0 -112
- package/coverage/lcov-report/src/.umi/dumi/demos/index.html +0 -116
- package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +0 -6340
- package/coverage/lcov-report/src/.umi/dumi/index.html +0 -116
- package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +0 -109
- package/coverage/lcov-report/src/.umi/index.html +0 -116
- package/coverage/lcov-report/src/.umi/plugin-antd/index.html +0 -116
- package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +0 -172
- package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +0 -94
- package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +0 -116
- package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +0 -196
- package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +0 -106
- package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +0 -146
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +0 -116
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +0 -88
- package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +0 -124
- package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +0 -1246
- package/coverage/lcov-report/src/.umi/plugin-locale/index.html +0 -161
- package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +0 -268
- package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +0 -778
- package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +0 -115
- package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +0 -202
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +0 -97
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +0 -142
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +0 -334
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +0 -146
- package/coverage/lcov-report/src/.umi/plugin-model/index.html +0 -146
- package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +0 -121
- package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +0 -298
- package/coverage/lcov-report/src/.umi/plugin-request/index.html +0 -116
- package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +0 -919
- package/coverage/lcov-report/src/.umi/umi.ts.html +0 -268
|
@@ -4,7 +4,7 @@ import "antd/es/space/style";
|
|
|
4
4
|
import _Space from "antd/es/space";
|
|
5
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { useMemo } from 'react';
|
|
7
|
+
import { useEffect, useMemo } from 'react';
|
|
8
8
|
import { useProConfig } from '../../../ProConfigProvider';
|
|
9
9
|
import locale from '../../../locale';
|
|
10
10
|
export var PRO_FORM_CACHE = 'PRO_FORM_CACHE';
|
|
@@ -30,11 +30,13 @@ var FormFooter = function FormFooter(props) {
|
|
|
30
30
|
var searchCache = useMemo(function () {
|
|
31
31
|
var cacheStr = window.sessionStorage.getItem(PRO_FORM_CACHE);
|
|
32
32
|
var cache = JSON.parse(cacheStr || '{}');
|
|
33
|
-
if (formId && cache[formId]) {
|
|
34
|
-
form.setFieldsValue(cache[formId]);
|
|
35
|
-
}
|
|
36
33
|
return cache;
|
|
37
34
|
}, [formId]);
|
|
35
|
+
useEffect(function () {
|
|
36
|
+
if (formId && searchCache[formId]) {
|
|
37
|
+
form.setFieldsValue(searchCache[formId]);
|
|
38
|
+
}
|
|
39
|
+
}, [formId]);
|
|
38
40
|
var _onOk = function _onOk() {
|
|
39
41
|
if (formId) {
|
|
40
42
|
var values = form.getFieldsValue();
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ProTableColumn } from '../../propsType';
|
|
3
|
-
export declare const formatColumn: ({ column, originalObj, dataSourceObj, rowKey, diffToolTip,
|
|
3
|
+
export declare const formatColumn: ({ column, originalObj, dataSourceObj, rowKey, diffToolTip, }: {
|
|
4
4
|
column: ProTableColumn;
|
|
5
5
|
originalObj: any;
|
|
6
6
|
dataSourceObj: any;
|
|
7
7
|
rowKey: any;
|
|
8
8
|
diffToolTip?: boolean;
|
|
9
|
-
wrapToolTipProps?: any;
|
|
10
9
|
}) => void;
|
|
11
10
|
/**
|
|
12
11
|
* 查找最近的父级className
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "antd/es/space/style";
|
|
2
2
|
import _Space from "antd/es/space";
|
|
3
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
3
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
4
|
import { isValidElement } from 'react';
|
|
6
5
|
import moment from 'moment';
|
|
@@ -17,8 +16,7 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
17
16
|
originalObj = _ref.originalObj,
|
|
18
17
|
dataSourceObj = _ref.dataSourceObj,
|
|
19
18
|
rowKey = _ref.rowKey,
|
|
20
|
-
diffToolTip = _ref.diffToolTip
|
|
21
|
-
wrapToolTipProps = _ref.wrapToolTipProps;
|
|
19
|
+
diffToolTip = _ref.diffToolTip;
|
|
22
20
|
var title = column.title,
|
|
23
21
|
valueType = column.valueType,
|
|
24
22
|
_column$format = column.format,
|
|
@@ -38,7 +36,6 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
38
36
|
originalDiffTip = _column$originalDiffT === void 0 ? true : _column$originalDiffT,
|
|
39
37
|
_column$toolTipProps = column.toolTipProps,
|
|
40
38
|
toolTipProps = _column$toolTipProps === void 0 ? {} : _column$toolTipProps;
|
|
41
|
-
var _toolTipProps = _objectSpread(_objectSpread({}, toolTipProps), wrapToolTipProps);
|
|
42
39
|
var _originalDiffTip = diffToolTip !== null && diffToolTip !== void 0 ? diffToolTip : originalDiffTip;
|
|
43
40
|
// 前缀处理
|
|
44
41
|
var prefixNode = function prefixNode(value, record, index) {
|
|
@@ -108,7 +105,7 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
108
105
|
value: value,
|
|
109
106
|
currentValue: renderValue,
|
|
110
107
|
originalDiffTip: _originalDiffTip,
|
|
111
|
-
toolTipProps:
|
|
108
|
+
toolTipProps: toolTipProps
|
|
112
109
|
});
|
|
113
110
|
};
|
|
114
111
|
// 千分位, 千分位带CNY前缀
|
|
@@ -138,7 +135,7 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
138
135
|
value: value,
|
|
139
136
|
currentValue: renderValue,
|
|
140
137
|
originalDiffTip: _originalDiffTip,
|
|
141
|
-
toolTipProps:
|
|
138
|
+
toolTipProps: toolTipProps
|
|
142
139
|
});
|
|
143
140
|
};
|
|
144
141
|
} else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
|
|
@@ -191,7 +188,7 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
191
188
|
value: value,
|
|
192
189
|
currentValue: renderValue,
|
|
193
190
|
originalDiffTip: _originalDiffTip,
|
|
194
|
-
toolTipProps:
|
|
191
|
+
toolTipProps: toolTipProps
|
|
195
192
|
});
|
|
196
193
|
};
|
|
197
194
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
@@ -229,7 +226,7 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
229
226
|
value: value,
|
|
230
227
|
currentValue: renderValue,
|
|
231
228
|
originalDiffTip: _originalDiffTip,
|
|
232
|
-
toolTipProps:
|
|
229
|
+
toolTipProps: toolTipProps
|
|
233
230
|
});
|
|
234
231
|
};
|
|
235
232
|
} else if (precision || prefix || suffix) {
|
|
@@ -256,7 +253,7 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
256
253
|
value: value,
|
|
257
254
|
currentValue: renderValue,
|
|
258
255
|
originalDiffTip: _originalDiffTip,
|
|
259
|
-
toolTipProps:
|
|
256
|
+
toolTipProps: toolTipProps
|
|
260
257
|
});
|
|
261
258
|
};
|
|
262
259
|
} else if (valueType === 'address') {
|
|
@@ -312,7 +309,7 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
312
309
|
node: value,
|
|
313
310
|
value: value,
|
|
314
311
|
currentValue: value,
|
|
315
|
-
toolTipProps:
|
|
312
|
+
toolTipProps: toolTipProps
|
|
316
313
|
}), suffixNode(value, record, index)]
|
|
317
314
|
});
|
|
318
315
|
};
|
|
@@ -333,7 +330,7 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
333
330
|
value: value,
|
|
334
331
|
currentValue: value || '-',
|
|
335
332
|
originalDiffTip: _originalDiffTip,
|
|
336
|
-
toolTipProps:
|
|
333
|
+
toolTipProps: toolTipProps
|
|
337
334
|
}), suffixNode(value, record, index)]
|
|
338
335
|
});
|
|
339
336
|
};
|
|
@@ -356,7 +353,7 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
356
353
|
value: value,
|
|
357
354
|
currentValue: value || '-',
|
|
358
355
|
originalDiffTip: _originalDiffTip,
|
|
359
|
-
toolTipProps:
|
|
356
|
+
toolTipProps: toolTipProps
|
|
360
357
|
});
|
|
361
358
|
};
|
|
362
359
|
}
|
package/es/ProTable/index.js
CHANGED
|
@@ -56,15 +56,6 @@ function ProTable(props) {
|
|
|
56
56
|
onDragStartGuard = props.onDragStart,
|
|
57
57
|
onDragEndGuard = props.onDragEnd,
|
|
58
58
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
59
|
-
var _props$scrollFollowPa = props.scrollFollowParent,
|
|
60
|
-
scrollFollowParent = _props$scrollFollowPa === void 0 ? true : _props$scrollFollowPa;
|
|
61
|
-
var wrapToolTipProps = {
|
|
62
|
-
getPopupContainer: scrollFollowParent ? function (triggerNode) {
|
|
63
|
-
return triggerNode.parentNode;
|
|
64
|
-
} : function () {
|
|
65
|
-
return document.body;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
59
|
var _ref3 = diffConfig || {},
|
|
69
60
|
originalDataSource = _ref3.originalDataSource,
|
|
70
61
|
changeTipColor = _ref3.changeTipColor,
|
|
@@ -207,8 +198,7 @@ function ProTable(props) {
|
|
|
207
198
|
originalObj: originalObj,
|
|
208
199
|
dataSourceObj: dataSourceObj,
|
|
209
200
|
rowKey: 'rowKey',
|
|
210
|
-
diffToolTip: toolTip
|
|
211
|
-
wrapToolTipProps: wrapToolTipProps
|
|
201
|
+
diffToolTip: toolTip
|
|
212
202
|
});
|
|
213
203
|
});
|
|
214
204
|
return newColumns;
|
|
@@ -103,10 +103,6 @@ export interface ProTableProps<T = any> extends Omit<TableProps<any>, 'summary'
|
|
|
103
103
|
*/
|
|
104
104
|
onDragStart?: DragStartGuardProps;
|
|
105
105
|
onDragEnd?: DragEndGuardProps;
|
|
106
|
-
/**
|
|
107
|
-
* 滚动额外配置
|
|
108
|
-
*/
|
|
109
|
-
scrollFollowParent?: boolean;
|
|
110
106
|
}
|
|
111
107
|
export type ProTableValueType = 'percentage' | 'permillage' | 'thousandth' | 'datePicker' | 'enumName' | 'enumCodeName' | 'address' | 'thousandthCNY' | 'date' | 'dateTime' | 'dateStartTime' | 'dateEndTime' | 'dateStartEndTime';
|
|
112
108
|
export interface Response<T = any> {
|
|
@@ -34,11 +34,13 @@ var FormFooter = function FormFooter(props) {
|
|
|
34
34
|
var searchCache = (0, _react.useMemo)(function () {
|
|
35
35
|
var cacheStr = window.sessionStorage.getItem(PRO_FORM_CACHE);
|
|
36
36
|
var cache = JSON.parse(cacheStr || '{}');
|
|
37
|
-
if (formId && cache[formId]) {
|
|
38
|
-
form.setFieldsValue(cache[formId]);
|
|
39
|
-
}
|
|
40
37
|
return cache;
|
|
41
38
|
}, [formId]);
|
|
39
|
+
(0, _react.useEffect)(function () {
|
|
40
|
+
if (formId && searchCache[formId]) {
|
|
41
|
+
form.setFieldsValue(searchCache[formId]);
|
|
42
|
+
}
|
|
43
|
+
}, [formId]);
|
|
42
44
|
var _onOk = function _onOk() {
|
|
43
45
|
if (formId) {
|
|
44
46
|
var values = form.getFieldsValue();
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ProTableColumn } from '../../propsType';
|
|
3
|
-
export declare const formatColumn: ({ column, originalObj, dataSourceObj, rowKey, diffToolTip,
|
|
3
|
+
export declare const formatColumn: ({ column, originalObj, dataSourceObj, rowKey, diffToolTip, }: {
|
|
4
4
|
column: ProTableColumn;
|
|
5
5
|
originalObj: any;
|
|
6
6
|
dataSourceObj: any;
|
|
7
7
|
rowKey: any;
|
|
8
8
|
diffToolTip?: boolean;
|
|
9
|
-
wrapToolTipProps?: any;
|
|
10
9
|
}) => void;
|
|
11
10
|
/**
|
|
12
11
|
* 查找最近的父级className
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.getParentElement = exports.formatColumn = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
9
|
var _react = require("react");
|
|
11
10
|
var _moment15 = _interopRequireDefault(require("moment"));
|
|
@@ -23,8 +22,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
23
22
|
originalObj = _ref.originalObj,
|
|
24
23
|
dataSourceObj = _ref.dataSourceObj,
|
|
25
24
|
rowKey = _ref.rowKey,
|
|
26
|
-
diffToolTip = _ref.diffToolTip
|
|
27
|
-
wrapToolTipProps = _ref.wrapToolTipProps;
|
|
25
|
+
diffToolTip = _ref.diffToolTip;
|
|
28
26
|
var title = column.title,
|
|
29
27
|
valueType = column.valueType,
|
|
30
28
|
_column$format = column.format,
|
|
@@ -44,7 +42,6 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
44
42
|
originalDiffTip = _column$originalDiffT === void 0 ? true : _column$originalDiffT,
|
|
45
43
|
_column$toolTipProps = column.toolTipProps,
|
|
46
44
|
toolTipProps = _column$toolTipProps === void 0 ? {} : _column$toolTipProps;
|
|
47
|
-
var _toolTipProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, toolTipProps), wrapToolTipProps);
|
|
48
45
|
var _originalDiffTip = diffToolTip !== null && diffToolTip !== void 0 ? diffToolTip : originalDiffTip;
|
|
49
46
|
// 前缀处理
|
|
50
47
|
var prefixNode = function prefixNode(value, record, index) {
|
|
@@ -114,7 +111,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
114
111
|
value: value,
|
|
115
112
|
currentValue: renderValue,
|
|
116
113
|
originalDiffTip: _originalDiffTip,
|
|
117
|
-
toolTipProps:
|
|
114
|
+
toolTipProps: toolTipProps
|
|
118
115
|
});
|
|
119
116
|
};
|
|
120
117
|
// 千分位, 千分位带CNY前缀
|
|
@@ -144,7 +141,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
144
141
|
value: value,
|
|
145
142
|
currentValue: renderValue,
|
|
146
143
|
originalDiffTip: _originalDiffTip,
|
|
147
|
-
toolTipProps:
|
|
144
|
+
toolTipProps: toolTipProps
|
|
148
145
|
});
|
|
149
146
|
};
|
|
150
147
|
} else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
|
|
@@ -197,7 +194,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
197
194
|
value: value,
|
|
198
195
|
currentValue: renderValue,
|
|
199
196
|
originalDiffTip: _originalDiffTip,
|
|
200
|
-
toolTipProps:
|
|
197
|
+
toolTipProps: toolTipProps
|
|
201
198
|
});
|
|
202
199
|
};
|
|
203
200
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
@@ -235,7 +232,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
235
232
|
value: value,
|
|
236
233
|
currentValue: renderValue,
|
|
237
234
|
originalDiffTip: _originalDiffTip,
|
|
238
|
-
toolTipProps:
|
|
235
|
+
toolTipProps: toolTipProps
|
|
239
236
|
});
|
|
240
237
|
};
|
|
241
238
|
} else if (precision || prefix || suffix) {
|
|
@@ -262,7 +259,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
262
259
|
value: value,
|
|
263
260
|
currentValue: renderValue,
|
|
264
261
|
originalDiffTip: _originalDiffTip,
|
|
265
|
-
toolTipProps:
|
|
262
|
+
toolTipProps: toolTipProps
|
|
266
263
|
});
|
|
267
264
|
};
|
|
268
265
|
} else if (valueType === 'address') {
|
|
@@ -318,7 +315,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
318
315
|
node: value,
|
|
319
316
|
value: value,
|
|
320
317
|
currentValue: value,
|
|
321
|
-
toolTipProps:
|
|
318
|
+
toolTipProps: toolTipProps
|
|
322
319
|
}), suffixNode(value, record, index)]
|
|
323
320
|
});
|
|
324
321
|
};
|
|
@@ -339,7 +336,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
339
336
|
value: value,
|
|
340
337
|
currentValue: value || '-',
|
|
341
338
|
originalDiffTip: _originalDiffTip,
|
|
342
|
-
toolTipProps:
|
|
339
|
+
toolTipProps: toolTipProps
|
|
343
340
|
}), suffixNode(value, record, index)]
|
|
344
341
|
});
|
|
345
342
|
};
|
|
@@ -362,7 +359,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref) {
|
|
|
362
359
|
value: value,
|
|
363
360
|
currentValue: value || '-',
|
|
364
361
|
originalDiffTip: _originalDiffTip,
|
|
365
|
-
toolTipProps:
|
|
362
|
+
toolTipProps: toolTipProps
|
|
366
363
|
});
|
|
367
364
|
};
|
|
368
365
|
}
|
package/lib/ProTable/index.js
CHANGED
|
@@ -63,15 +63,6 @@ function ProTable(props) {
|
|
|
63
63
|
onDragStartGuard = props.onDragStart,
|
|
64
64
|
onDragEndGuard = props.onDragEnd,
|
|
65
65
|
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
66
|
-
var _props$scrollFollowPa = props.scrollFollowParent,
|
|
67
|
-
scrollFollowParent = _props$scrollFollowPa === void 0 ? true : _props$scrollFollowPa;
|
|
68
|
-
var wrapToolTipProps = {
|
|
69
|
-
getPopupContainer: scrollFollowParent ? function (triggerNode) {
|
|
70
|
-
return triggerNode.parentNode;
|
|
71
|
-
} : function () {
|
|
72
|
-
return document.body;
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
66
|
var _ref3 = diffConfig || {},
|
|
76
67
|
originalDataSource = _ref3.originalDataSource,
|
|
77
68
|
changeTipColor = _ref3.changeTipColor,
|
|
@@ -214,8 +205,7 @@ function ProTable(props) {
|
|
|
214
205
|
originalObj: originalObj,
|
|
215
206
|
dataSourceObj: dataSourceObj,
|
|
216
207
|
rowKey: 'rowKey',
|
|
217
|
-
diffToolTip: toolTip
|
|
218
|
-
wrapToolTipProps: wrapToolTipProps
|
|
208
|
+
diffToolTip: toolTip
|
|
219
209
|
});
|
|
220
210
|
});
|
|
221
211
|
return newColumns;
|
|
@@ -103,10 +103,6 @@ export interface ProTableProps<T = any> extends Omit<TableProps<any>, 'summary'
|
|
|
103
103
|
*/
|
|
104
104
|
onDragStart?: DragStartGuardProps;
|
|
105
105
|
onDragEnd?: DragEndGuardProps;
|
|
106
|
-
/**
|
|
107
|
-
* 滚动额外配置
|
|
108
|
-
*/
|
|
109
|
-
scrollFollowParent?: boolean;
|
|
110
106
|
}
|
|
111
107
|
export type ProTableValueType = 'percentage' | 'permillage' | 'thousandth' | 'datePicker' | 'enumName' | 'enumCodeName' | 'address' | 'thousandthCNY' | 'date' | 'dateTime' | 'dateStartTime' | 'dateEndTime' | 'dateStartEndTime';
|
|
112
108
|
export interface Response<T = any> {
|
package/package.json
CHANGED
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for src/.umi/core/devScripts.ts</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/.umi/core</a> devScripts.ts</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">0% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/18</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">0% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/15</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">0% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/5</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">0% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/18</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line low'></div>
|
|
65
|
-
<pre><table class="coverage">
|
|
66
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
-
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
-
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
-
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
-
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
-
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
-
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
-
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
-
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
-
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
-
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
-
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
-
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
-
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
-
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
-
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
-
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
-
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
-
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
-
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
-
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
-
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
-
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
-
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
-
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
-
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
-
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
-
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
-
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
-
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
-
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
-
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
-
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
-
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
-
<a name='L37'></a><a href='#L37'>37</a>
|
|
103
|
-
<a name='L38'></a><a href='#L38'>38</a>
|
|
104
|
-
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
|
-
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
|
-
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
-
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
-
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
-
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
-
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
-
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
-
<a name='L47'></a><a href='#L47'>47</a>
|
|
113
|
-
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
-
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
-
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
-
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
-
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
-
<a name='L53'></a><a href='#L53'>53</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
119
|
-
<span class="cline-any cline-neutral"> </span>
|
|
120
|
-
<span class="cline-any cline-no"> </span>
|
|
121
|
-
<span class="cline-any cline-neutral"> </span>
|
|
122
|
-
<span class="cline-any cline-neutral"> </span>
|
|
123
|
-
<span class="cline-any cline-no"> </span>
|
|
124
|
-
<span class="cline-any cline-no"> </span>
|
|
125
|
-
<span class="cline-any cline-no"> </span>
|
|
126
|
-
<span class="cline-any cline-neutral"> </span>
|
|
127
|
-
<span class="cline-any cline-neutral"> </span>
|
|
128
|
-
<span class="cline-any cline-neutral"> </span>
|
|
129
|
-
<span class="cline-any cline-neutral"> </span>
|
|
130
|
-
<span class="cline-any cline-no"> </span>
|
|
131
|
-
<span class="cline-any cline-neutral"> </span>
|
|
132
|
-
<span class="cline-any cline-neutral"> </span>
|
|
133
|
-
<span class="cline-any cline-neutral"> </span>
|
|
134
|
-
<span class="cline-any cline-neutral"> </span>
|
|
135
|
-
<span class="cline-any cline-no"> </span>
|
|
136
|
-
<span class="cline-any cline-no"> </span>
|
|
137
|
-
<span class="cline-any cline-neutral"> </span>
|
|
138
|
-
<span class="cline-any cline-neutral"> </span>
|
|
139
|
-
<span class="cline-any cline-neutral"> </span>
|
|
140
|
-
<span class="cline-any cline-no"> </span>
|
|
141
|
-
<span class="cline-any cline-no"> </span>
|
|
142
|
-
<span class="cline-any cline-no"> </span>
|
|
143
|
-
<span class="cline-any cline-neutral"> </span>
|
|
144
|
-
<span class="cline-any cline-neutral"> </span>
|
|
145
|
-
<span class="cline-any cline-no"> </span>
|
|
146
|
-
<span class="cline-any cline-neutral"> </span>
|
|
147
|
-
<span class="cline-any cline-no"> </span>
|
|
148
|
-
<span class="cline-any cline-neutral"> </span>
|
|
149
|
-
<span class="cline-any cline-no"> </span>
|
|
150
|
-
<span class="cline-any cline-neutral"> </span>
|
|
151
|
-
<span class="cline-any cline-neutral"> </span>
|
|
152
|
-
<span class="cline-any cline-neutral"> </span>
|
|
153
|
-
<span class="cline-any cline-neutral"> </span>
|
|
154
|
-
<span class="cline-any cline-no"> </span>
|
|
155
|
-
<span class="cline-any cline-neutral"> </span>
|
|
156
|
-
<span class="cline-any cline-no"> </span>
|
|
157
|
-
<span class="cline-any cline-neutral"> </span>
|
|
158
|
-
<span class="cline-any cline-neutral"> </span>
|
|
159
|
-
<span class="cline-any cline-no"> </span>
|
|
160
|
-
<span class="cline-any cline-neutral"> </span>
|
|
161
|
-
<span class="cline-any cline-neutral"> </span>
|
|
162
|
-
<span class="cline-any cline-neutral"> </span>
|
|
163
|
-
<span class="cline-any cline-neutral"> </span>
|
|
164
|
-
<span class="cline-any cline-no"> </span>
|
|
165
|
-
<span class="cline-any cline-neutral"> </span>
|
|
166
|
-
<span class="cline-any cline-neutral"> </span>
|
|
167
|
-
<span class="cline-any cline-neutral"> </span>
|
|
168
|
-
<span class="cline-any cline-neutral"> </span>
|
|
169
|
-
<span class="cline-any cline-no"> </span>
|
|
170
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">// @ts-nocheck
|
|
171
|
-
|
|
172
|
-
<span class="cstat-no" title="statement not covered" >if (window.g_initWebpackHotDevClient) {</span>
|
|
173
|
-
function <span class="fstat-no" title="function not covered" >tryApplyUpdates(</span>onHotUpdateSuccess?: Function) {
|
|
174
|
-
// @ts-ignore
|
|
175
|
-
<span class="cstat-no" title="statement not covered" > if (!module.hot) {</span>
|
|
176
|
-
<span class="cstat-no" title="statement not covered" > window.location.reload();</span>
|
|
177
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function <span class="fstat-no" title="function not covered" >isUpdateAvailable(</span>) {
|
|
181
|
-
// @ts-ignore
|
|
182
|
-
<span class="cstat-no" title="statement not covered" > return window.g_getMostRecentCompilationHash() !== __webpack_hash__;</span>
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// TODO: is update available?
|
|
186
|
-
// @ts-ignore
|
|
187
|
-
<span class="cstat-no" title="statement not covered" > if (!isUpdateAvailable() || module.hot.status() !== 'idle') {</span>
|
|
188
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
function <span class="fstat-no" title="function not covered" >handleApplyUpdates(</span>err: Error | null, updatedModules: any) {
|
|
192
|
-
<span class="cstat-no" title="statement not covered" > if (err || !updatedModules || window.g_getHadRuntimeError()) {</span>
|
|
193
|
-
<span class="cstat-no" title="statement not covered" > window.location.reload();</span>
|
|
194
|
-
<span class="cstat-no" title="statement not covered" > return;</span>
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
<span class="cstat-no" title="statement not covered" > onHotUpdateSuccess?.();</span>
|
|
198
|
-
|
|
199
|
-
<span class="cstat-no" title="statement not covered" > if (isUpdateAvailable()) {</span>
|
|
200
|
-
// While we were updating, there was a new update! Do it again.
|
|
201
|
-
<span class="cstat-no" title="statement not covered" > tryApplyUpdates();</span>
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
// @ts-ignore
|
|
206
|
-
<span class="cstat-no" title="statement not covered" > module.hot.check(true).then(</span>
|
|
207
|
-
<span class="fstat-no" title="function not covered" > fu</span>nction (updatedModules: any) {
|
|
208
|
-
<span class="cstat-no" title="statement not covered" > handleApplyUpdates(null, updatedModules);</span>
|
|
209
|
-
},
|
|
210
|
-
<span class="fstat-no" title="function not covered" > fu</span>nction (err: Error) {
|
|
211
|
-
<span class="cstat-no" title="statement not covered" > handleApplyUpdates(err, null);</span>
|
|
212
|
-
},
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
<span class="cstat-no" title="statement not covered" > window.g_initWebpackHotDevClient({</span>
|
|
217
|
-
tryApplyUpdates,
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export const __mfsu = <span class="cstat-no" title="statement not covered" >1;</span>
|
|
222
|
-
</pre></td></tr></table></pre>
|
|
223
|
-
|
|
224
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
225
|
-
</div><!-- /wrapper -->
|
|
226
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
227
|
-
Code coverage generated by
|
|
228
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
229
|
-
at 2024-01-24T02:49:50.075Z
|
|
230
|
-
</div>
|
|
231
|
-
<script src="../../../prettify.js"></script>
|
|
232
|
-
<script>
|
|
233
|
-
window.onload = function () {
|
|
234
|
-
prettyPrint();
|
|
235
|
-
};
|
|
236
|
-
</script>
|
|
237
|
-
<script src="../../../sorter.js"></script>
|
|
238
|
-
<script src="../../../block-navigation.js"></script>
|
|
239
|
-
</body>
|
|
240
|
-
</html>
|
|
241
|
-
|