@zat-design/sisyphus-react 3.7.0-beta.7 → 3.7.0-beta.9
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/ProEditTable/utils/config.js +6 -10
- package/es/ProEditTable/utils/tools.js +3 -7
- package/es/ProForm/components/base/Select/index.js +1 -0
- package/es/ProSelect/index.js +4 -0
- package/lib/ProEditTable/utils/config.js +6 -10
- package/lib/ProEditTable/utils/tools.js +2 -6
- package/lib/ProForm/components/base/Select/index.js +1 -0
- package/lib/ProSelect/index.js +4 -0
- 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
|
@@ -168,7 +168,7 @@ export var actions = {
|
|
|
168
168
|
add: function () {
|
|
169
169
|
var _add = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref5) {
|
|
170
170
|
var _tableRef$current$que, _tableRef$current$que2;
|
|
171
|
-
var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, _ref5$prefixCls, prefixCls, nextData, rowKey, addData, nextEditingKeys
|
|
171
|
+
var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, _ref5$prefixCls, prefixCls, nextData, rowKey, addData, nextEditingKeys;
|
|
172
172
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
173
173
|
while (1) switch (_context2.prev = _context2.next) {
|
|
174
174
|
case 0:
|
|
@@ -194,27 +194,23 @@ export var actions = {
|
|
|
194
194
|
if (virtualKey) {
|
|
195
195
|
nextEditingKeys = _toConsumableArray(editingKeys); // 开启编辑状态
|
|
196
196
|
nextEditingKeys.push(rowKey);
|
|
197
|
-
|
|
198
|
-
set(_obj, virtualName, nextData);
|
|
199
|
-
form.setFieldsValue(_obj);
|
|
197
|
+
form.setFieldValue(virtualName, nextData);
|
|
200
198
|
setState({
|
|
201
199
|
editingKeys: nextEditingKeys
|
|
202
200
|
});
|
|
203
201
|
}
|
|
204
|
-
|
|
205
|
-
set(obj, name, nextData);
|
|
206
|
-
form.setFieldsValue(obj);
|
|
202
|
+
form.setFieldValue(name, nextData);
|
|
207
203
|
(_tableRef$current$que = tableRef.current.querySelector(".".concat(prefixCls, "-table-body"))) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
|
|
208
204
|
top: insertType === 'before' ? -10000 : 10000,
|
|
209
205
|
behavior: 'smooth'
|
|
210
206
|
});
|
|
211
207
|
if (!virtualKey) {
|
|
212
|
-
_context2.next =
|
|
208
|
+
_context2.next = 15;
|
|
213
209
|
break;
|
|
214
210
|
}
|
|
215
|
-
_context2.next =
|
|
211
|
+
_context2.next = 15;
|
|
216
212
|
return form.validateFields([name]);
|
|
217
|
-
case
|
|
213
|
+
case 15:
|
|
218
214
|
case "end":
|
|
219
215
|
return _context2.stop();
|
|
220
216
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { cloneDeep, cloneDeepWith, isString, isObject, isEqual, transform, isFunction, isBoolean
|
|
3
|
+
import { cloneDeep, cloneDeepWith, isString, isObject, isEqual, transform, isFunction, isBoolean } from 'lodash';
|
|
4
4
|
export var getRandom = function getRandom() {
|
|
5
5
|
return Math.random().toString(36).slice(-6);
|
|
6
6
|
};
|
|
@@ -61,9 +61,7 @@ export var onDelete = function onDelete(_ref) {
|
|
|
61
61
|
dataSource = dataSource.filter(function (row) {
|
|
62
62
|
return !selectedRowKeys.includes(row.rowKey);
|
|
63
63
|
});
|
|
64
|
-
|
|
65
|
-
set(obj, name, dataSource);
|
|
66
|
-
form.setFieldsValue(obj);
|
|
64
|
+
form.setFieldValue(name, dataSource);
|
|
67
65
|
// 单行模式数据流处理 重置中间正在编辑状态单行数据
|
|
68
66
|
if (virtualKey) {
|
|
69
67
|
var _virtualList;
|
|
@@ -73,9 +71,7 @@ export var onDelete = function onDelete(_ref) {
|
|
|
73
71
|
virtualList = virtualList.filter(function (row) {
|
|
74
72
|
return !selectedRowKeys.includes(row.rowKey);
|
|
75
73
|
});
|
|
76
|
-
|
|
77
|
-
set(_obj, namePath, virtualList);
|
|
78
|
-
form.setFieldsValue(_obj);
|
|
74
|
+
form.setFieldValue(namePath, virtualList);
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
77
|
};
|
package/es/ProSelect/index.js
CHANGED
|
@@ -268,6 +268,10 @@ export var ProSelect = function ProSelect(props, ref) {
|
|
|
268
268
|
return option === null || option === void 0 ? void 0 : option[code];
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
+
// 修复空字符placeholder不显示
|
|
272
|
+
if (value === '') {
|
|
273
|
+
return null;
|
|
274
|
+
}
|
|
271
275
|
return value;
|
|
272
276
|
};
|
|
273
277
|
var newSelectList = selectList;
|
|
@@ -174,7 +174,7 @@ var actions = exports.actions = {
|
|
|
174
174
|
add: function () {
|
|
175
175
|
var _add = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_ref5) {
|
|
176
176
|
var _tableRef$current$que, _tableRef$current$que2;
|
|
177
|
-
var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, _ref5$prefixCls, prefixCls, nextData, rowKey, addData, nextEditingKeys
|
|
177
|
+
var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, _ref5$prefixCls, prefixCls, nextData, rowKey, addData, nextEditingKeys;
|
|
178
178
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
179
179
|
while (1) switch (_context2.prev = _context2.next) {
|
|
180
180
|
case 0:
|
|
@@ -200,27 +200,23 @@ var actions = exports.actions = {
|
|
|
200
200
|
if (virtualKey) {
|
|
201
201
|
nextEditingKeys = (0, _toConsumableArray2.default)(editingKeys); // 开启编辑状态
|
|
202
202
|
nextEditingKeys.push(rowKey);
|
|
203
|
-
|
|
204
|
-
(0, _lodash.set)(_obj, virtualName, nextData);
|
|
205
|
-
form.setFieldsValue(_obj);
|
|
203
|
+
form.setFieldValue(virtualName, nextData);
|
|
206
204
|
setState({
|
|
207
205
|
editingKeys: nextEditingKeys
|
|
208
206
|
});
|
|
209
207
|
}
|
|
210
|
-
|
|
211
|
-
(0, _lodash.set)(obj, name, nextData);
|
|
212
|
-
form.setFieldsValue(obj);
|
|
208
|
+
form.setFieldValue(name, nextData);
|
|
213
209
|
(_tableRef$current$que = tableRef.current.querySelector(".".concat(prefixCls, "-table-body"))) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
|
|
214
210
|
top: insertType === 'before' ? -10000 : 10000,
|
|
215
211
|
behavior: 'smooth'
|
|
216
212
|
});
|
|
217
213
|
if (!virtualKey) {
|
|
218
|
-
_context2.next =
|
|
214
|
+
_context2.next = 15;
|
|
219
215
|
break;
|
|
220
216
|
}
|
|
221
|
-
_context2.next =
|
|
217
|
+
_context2.next = 15;
|
|
222
218
|
return form.validateFields([name]);
|
|
223
|
-
case
|
|
219
|
+
case 15:
|
|
224
220
|
case "end":
|
|
225
221
|
return _context2.stop();
|
|
226
222
|
}
|
|
@@ -69,9 +69,7 @@ var onDelete = exports.onDelete = function onDelete(_ref) {
|
|
|
69
69
|
dataSource = dataSource.filter(function (row) {
|
|
70
70
|
return !selectedRowKeys.includes(row.rowKey);
|
|
71
71
|
});
|
|
72
|
-
|
|
73
|
-
(0, _lodash.set)(obj, name, dataSource);
|
|
74
|
-
form.setFieldsValue(obj);
|
|
72
|
+
form.setFieldValue(name, dataSource);
|
|
75
73
|
// 单行模式数据流处理 重置中间正在编辑状态单行数据
|
|
76
74
|
if (virtualKey) {
|
|
77
75
|
var _virtualList;
|
|
@@ -81,9 +79,7 @@ var onDelete = exports.onDelete = function onDelete(_ref) {
|
|
|
81
79
|
virtualList = virtualList.filter(function (row) {
|
|
82
80
|
return !selectedRowKeys.includes(row.rowKey);
|
|
83
81
|
});
|
|
84
|
-
|
|
85
|
-
(0, _lodash.set)(_obj, namePath, virtualList);
|
|
86
|
-
form.setFieldsValue(_obj);
|
|
82
|
+
form.setFieldValue(namePath, virtualList);
|
|
87
83
|
}
|
|
88
84
|
}
|
|
89
85
|
};
|
package/lib/ProSelect/index.js
CHANGED
|
@@ -269,6 +269,10 @@ var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
|
|
|
269
269
|
return option === null || option === void 0 ? void 0 : option[code];
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
+
// 修复空字符placeholder不显示
|
|
273
|
+
if (value === '') {
|
|
274
|
+
return null;
|
|
275
|
+
}
|
|
272
276
|
return value;
|
|
273
277
|
};
|
|
274
278
|
var newSelectList = selectList;
|
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
|
-
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for src/.umi/core/history.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> history.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/8</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/7</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/1</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/8</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></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
88
|
-
<span class="cline-any cline-neutral"> </span>
|
|
89
|
-
<span class="cline-any cline-neutral"> </span>
|
|
90
|
-
<span class="cline-any cline-no"> </span>
|
|
91
|
-
<span class="cline-any cline-neutral"> </span>
|
|
92
|
-
<span class="cline-any cline-neutral"> </span>
|
|
93
|
-
<span class="cline-any cline-no"> </span>
|
|
94
|
-
<span class="cline-any cline-no"> </span>
|
|
95
|
-
<span class="cline-any cline-neutral"> </span>
|
|
96
|
-
<span class="cline-any cline-neutral"> </span>
|
|
97
|
-
<span class="cline-any cline-neutral"> </span>
|
|
98
|
-
<span class="cline-any cline-no"> </span>
|
|
99
|
-
<span class="cline-any cline-no"> </span>
|
|
100
|
-
<span class="cline-any cline-no"> </span>
|
|
101
|
-
<span class="cline-any cline-no"> </span>
|
|
102
|
-
<span class="cline-any cline-neutral"> </span>
|
|
103
|
-
<span class="cline-any cline-neutral"> </span>
|
|
104
|
-
<span class="cline-any cline-no"> </span>
|
|
105
|
-
<span class="cline-any cline-neutral"> </span>
|
|
106
|
-
<span class="cline-any cline-neutral"> </span>
|
|
107
|
-
<span class="cline-any cline-neutral"> </span>
|
|
108
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">// @ts-nocheck
|
|
109
|
-
import { createBrowserHistory, History } from '/Users/zakj/Desktop/pro/za-material-warehouse/node_modules/@umijs/runtime';
|
|
110
|
-
|
|
111
|
-
let options = <span class="cstat-no" title="statement not covered" >{</span>
|
|
112
|
-
"basename": "/"
|
|
113
|
-
};
|
|
114
|
-
<span class="cstat-no" title="statement not covered" >if ((<any>window).routerBase) {</span>
|
|
115
|
-
<span class="cstat-no" title="statement not covered" > options.basename = (<any>window).routerBase;</span>
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// remove initial history because of ssr
|
|
119
|
-
let history: History = <span class="cstat-no" title="statement not covered" >process.env.__IS_SERVER ? null : createBrowserHistory(options);</span>
|
|
120
|
-
export const createHistory = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(h</span>otReload = <span class="branch-0 cbranch-no" title="branch not covered" >false)</span> => {</span>
|
|
121
|
-
<span class="cstat-no" title="statement not covered" > if (!hotReload) {</span>
|
|
122
|
-
<span class="cstat-no" title="statement not covered" > history = createBrowserHistory(options);</span>
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
<span class="cstat-no" title="statement not covered" > return history;</span>
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export { history };
|
|
129
|
-
</pre></td></tr></table></pre>
|
|
130
|
-
|
|
131
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
132
|
-
</div><!-- /wrapper -->
|
|
133
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
134
|
-
Code coverage generated by
|
|
135
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
136
|
-
at 2024-01-24T02:49:50.075Z
|
|
137
|
-
</div>
|
|
138
|
-
<script src="../../../prettify.js"></script>
|
|
139
|
-
<script>
|
|
140
|
-
window.onload = function () {
|
|
141
|
-
prettyPrint();
|
|
142
|
-
};
|
|
143
|
-
</script>
|
|
144
|
-
<script src="../../../sorter.js"></script>
|
|
145
|
-
<script src="../../../block-navigation.js"></script>
|
|
146
|
-
</body>
|
|
147
|
-
</html>
|
|
148
|
-
|