@zat-design/sisyphus-react 3.10.2-beta.1 → 3.10.2-beta.3
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/ProAction/index.js +5 -5
- package/es/ProDownload/index.d.ts +1 -1
- package/es/ProDownload/index.js +3 -3
- package/es/ProDownload/utils.js +3 -3
- package/es/ProDrawerForm/components/ProDrawer/index.js +4 -4
- package/es/ProDrawerForm/components/ProModal/index.js +3 -3
- package/es/ProEditLabel/index.js +3 -3
- package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/es/ProEditTable/components/ActionButton/index.js +3 -3
- package/es/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
- package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
- package/es/ProEditTable/components/RcTable/VirtualTable.d.ts +1 -1
- package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderField/index.js +5 -5
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderToolbar/index.js +1 -1
- package/es/ProEditTable/components/Summary/index.d.ts +1 -1
- package/es/ProEditTable/utils/config.d.ts +1 -1
- package/es/ProEditTable/utils/config.js +2 -2
- package/es/ProEditTable/utils/index.js +5 -5
- package/es/ProEditTable/utils/tools.js +4 -4
- package/es/ProEnum/components/Group.d.ts +1 -1
- package/es/ProEnum/components/Tag.d.ts +1 -1
- package/es/ProEnum/hooks/useEnumRequest.js +2 -2
- package/es/ProEnum/index.d.ts +2 -2
- package/es/ProEnum/index.js +1 -1
- package/es/ProEnum/utils/eventCenter.js +2 -1
- package/es/ProEnum/utils/getEnumLabel.d.ts +1 -1
- package/es/ProForm/components/base/Input/index.d.ts +1 -1
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +2 -2
- package/es/ProForm/components/combination/FormList/components/BlockTitle.js +1 -1
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +1 -1
- package/es/ProForm/components/combination/FormList/utils.js +1 -1
- package/es/ProForm/components/combination/Group/component/ComRender.js +1 -1
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/index.js +8 -8
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
- package/es/ProForm/components/combination/ProModalSelect/index.js +7 -7
- package/es/ProForm/components/old/InputRange/index.d.ts +1 -1
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +2 -1
- package/es/ProForm/components/old/ProAddress/index.js +1 -1
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +2 -1
- package/es/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/es/ProForm/components/render/Render.js +3 -3
- package/es/ProForm/index.js +1 -1
- package/es/ProForm/utils/index.js +10 -14
- package/es/ProForm/utils/useForm.js +1 -1
- package/es/ProIcon/utils/index.js +3 -4
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
- package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
- package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/es/ProLayout/index.d.ts +4 -4
- package/es/ProLayout/utils/index.js +9 -9
- package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
- package/es/ProSelect/index.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.d.ts +1 -1
- package/es/ProStep/components/Item/index.d.ts +1 -1
- package/es/ProStep/components/Listener/index.js +1 -1
- package/es/ProStep/components/Step/index.d.ts +1 -1
- package/es/ProStep/index.d.ts +2 -2
- package/es/ProStep/index.js +3 -3
- package/es/ProTable/components/FormatColumn/index.js +3 -8
- package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +1 -1
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +8 -9
- package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +1 -1
- package/es/ProTable/components/RenderColumn/index.js +2 -14
- package/es/ProTable/components/RenderFooter/index.d.ts +1 -1
- package/es/ProTable/components/RenderTableHeader/index.d.ts +1 -1
- package/es/ProTable/components/TableResizable/index.d.ts +1 -1
- package/es/ProTable/hooks/useAntdTable.js +3 -3
- package/es/ProTable/index.d.ts +1 -1
- package/es/ProTable/index.js +5 -5
- package/es/ProTable/utils/index.d.ts +6 -0
- package/es/ProTable/utils/index.js +14 -0
- package/es/ProTabs/components/Card/index.d.ts +1 -1
- package/es/ProThemeTools/component/ProTools/index.d.ts +1 -1
- package/es/ProThemeTools/index.d.ts +1 -1
- package/es/ProTooltip/index.d.ts +1 -1
- package/es/ProTree/components/AdaptiveTooltip.d.ts +1 -1
- package/es/ProTree/components/CloseIcon.d.ts +2 -1
- package/es/ProTree/components/List.d.ts +1 -1
- package/es/ProTree/components/ProTree.d.ts +1 -1
- package/es/ProTree/components/ProTree.js +1 -1
- package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/es/ProTree/components/ProTreeSelect/index.js +20 -20
- package/es/ProTree/components/SearchTitle.d.ts +1 -1
- package/es/ProTree/components/Tree.d.ts +1 -1
- package/es/ProTree/components/Tree.js +4 -4
- package/es/ProTree/index.d.ts +1 -1
- package/es/ProTree/utils.js +11 -12
- package/es/ProTreeModal/components/Cascader.d.ts +1 -1
- package/es/ProTreeModal/components/CloseIcon.d.ts +2 -1
- package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/es/ProTreeModal/components/Tree.js +6 -6
- package/es/ProTreeModal/components/Trigger.d.ts +1 -1
- package/es/ProTreeModal/index.d.ts +1 -1
- package/es/ProTreeModal/index.js +3 -3
- package/es/ProTreeModal/utils.js +14 -16
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/es/ProUpload/components/ImageRender.js +1 -1
- package/es/ProViewer/index.js +2 -2
- package/es/old/ProEditableTable/index.js +4 -4
- package/lib/ProAction/index.js +5 -5
- package/lib/ProDownload/index.d.ts +1 -1
- package/lib/ProDownload/index.js +3 -3
- package/lib/ProDownload/utils.js +3 -3
- package/lib/ProDrawerForm/components/ProDrawer/index.js +4 -4
- package/lib/ProDrawerForm/components/ProModal/index.js +3 -3
- package/lib/ProEditLabel/index.js +3 -3
- package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/lib/ProEditTable/components/ActionButton/index.js +3 -3
- package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
- package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
- package/lib/ProEditTable/components/RcTable/VirtualTable.d.ts +1 -1
- package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/lib/ProEditTable/components/RenderField/index.js +5 -5
- package/lib/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
- package/lib/ProEditTable/components/RenderToolbar/index.js +1 -1
- package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
- package/lib/ProEditTable/utils/config.d.ts +1 -1
- package/lib/ProEditTable/utils/config.js +2 -2
- package/lib/ProEditTable/utils/index.js +5 -5
- package/lib/ProEditTable/utils/tools.js +4 -4
- package/lib/ProEnum/components/Group.d.ts +1 -1
- package/lib/ProEnum/components/Tag.d.ts +1 -1
- package/lib/ProEnum/hooks/useEnumRequest.js +2 -2
- package/lib/ProEnum/index.d.ts +2 -2
- package/lib/ProEnum/index.js +1 -1
- package/lib/ProEnum/utils/eventCenter.js +2 -1
- package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
- package/lib/ProForm/components/base/Input/index.d.ts +1 -1
- package/lib/ProForm/components/combination/FormList/components/ActionButton.js +2 -2
- package/lib/ProForm/components/combination/FormList/components/BlockTitle.js +1 -1
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +1 -1
- package/lib/ProForm/components/combination/FormList/utils.js +1 -1
- package/lib/ProForm/components/combination/Group/component/ComRender.js +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.js +8 -8
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +6 -6
- package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +2 -1
- package/lib/ProForm/components/old/ProAddress/index.js +1 -1
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +2 -1
- package/lib/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/lib/ProForm/components/render/Render.js +3 -3
- package/lib/ProForm/index.js +1 -1
- package/lib/ProForm/utils/index.js +10 -10
- package/lib/ProForm/utils/useForm.js +1 -1
- package/lib/ProIcon/utils/index.js +3 -3
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
- package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
- package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/lib/ProLayout/index.d.ts +4 -4
- package/lib/ProLayout/utils/index.js +9 -9
- package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
- package/lib/ProSelect/index.d.ts +1 -1
- package/lib/ProStep/components/Anchor/index.d.ts +1 -1
- package/lib/ProStep/components/Item/index.d.ts +1 -1
- package/lib/ProStep/components/Listener/index.js +1 -1
- package/lib/ProStep/components/Step/index.d.ts +1 -1
- package/lib/ProStep/index.d.ts +2 -2
- package/lib/ProStep/index.js +3 -3
- package/lib/ProTable/components/FormatColumn/index.js +3 -8
- package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +1 -1
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +8 -8
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +1 -1
- package/lib/ProTable/components/RenderColumn/index.js +5 -17
- package/lib/ProTable/components/RenderFooter/index.d.ts +1 -1
- package/lib/ProTable/components/RenderTableHeader/index.d.ts +1 -1
- package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
- package/lib/ProTable/hooks/useAntdTable.js +3 -3
- package/lib/ProTable/index.d.ts +1 -1
- package/lib/ProTable/index.js +5 -5
- package/lib/ProTable/utils/index.d.ts +6 -0
- package/lib/ProTable/utils/index.js +15 -1
- package/lib/ProTabs/components/Card/index.d.ts +1 -1
- package/lib/ProThemeTools/component/ProTools/index.d.ts +1 -1
- package/lib/ProThemeTools/index.d.ts +1 -1
- package/lib/ProTooltip/index.d.ts +1 -1
- package/lib/ProTree/components/AdaptiveTooltip.d.ts +1 -1
- package/lib/ProTree/components/CloseIcon.d.ts +2 -1
- package/lib/ProTree/components/List.d.ts +1 -1
- package/lib/ProTree/components/ProTree.d.ts +1 -1
- package/lib/ProTree/components/ProTree.js +1 -1
- package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/lib/ProTree/components/ProTreeSelect/index.js +20 -20
- package/lib/ProTree/components/SearchTitle.d.ts +1 -1
- package/lib/ProTree/components/Tree.d.ts +1 -1
- package/lib/ProTree/components/Tree.js +4 -4
- package/lib/ProTree/index.d.ts +1 -1
- package/lib/ProTree/utils.js +11 -11
- package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
- package/lib/ProTreeModal/components/CloseIcon.d.ts +2 -1
- package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/lib/ProTreeModal/components/Tree.js +6 -6
- package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
- package/lib/ProTreeModal/index.d.ts +1 -1
- package/lib/ProTreeModal/index.js +3 -3
- package/lib/ProTreeModal/utils.js +13 -13
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/lib/ProUpload/components/ImageRender.js +1 -1
- package/lib/ProViewer/index.js +2 -2
- package/lib/old/ProEditableTable/index.js +4 -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
@@ -71,7 +71,7 @@ function getAllKeys(data, fieldNames) {
|
|
71
71
|
* @param fieldNames
|
72
72
|
* @returns
|
73
73
|
*/
|
74
|
-
var
|
74
|
+
var getParentKey = exports.getParentKey = function getParentKey(key, tree, fieldNames) {
|
75
75
|
var parentKey;
|
76
76
|
for (var i = 0; i < tree.length; i++) {
|
77
77
|
var node = tree[i];
|
@@ -80,8 +80,8 @@ var _getParentKey = exports.getParentKey = function getParentKey(key, tree, fiel
|
|
80
80
|
return item[fieldNames.value] === key;
|
81
81
|
})) {
|
82
82
|
parentKey = node[fieldNames.value];
|
83
|
-
} else if (
|
84
|
-
parentKey =
|
83
|
+
} else if (getParentKey(key, node[fieldNames.children], fieldNames)) {
|
84
|
+
parentKey = getParentKey(key, node[fieldNames.children], fieldNames);
|
85
85
|
}
|
86
86
|
}
|
87
87
|
}
|
@@ -89,7 +89,7 @@ var _getParentKey = exports.getParentKey = function getParentKey(key, tree, fiel
|
|
89
89
|
};
|
90
90
|
function findTreeNodeByKey(treeData, key, fieldNames) {
|
91
91
|
var result = [];
|
92
|
-
var
|
92
|
+
var traverse = function traverse(node, parents) {
|
93
93
|
if (node[fieldNames.value] === key) {
|
94
94
|
result.push.apply(result, [node].concat((0, _toConsumableArray2.default)(parents)));
|
95
95
|
return true;
|
@@ -100,7 +100,7 @@ function findTreeNodeByKey(treeData, key, fieldNames) {
|
|
100
100
|
try {
|
101
101
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
102
102
|
var child = _step.value;
|
103
|
-
if (
|
103
|
+
if (traverse(child, [node].concat((0, _toConsumableArray2.default)(parents)))) {
|
104
104
|
return true;
|
105
105
|
}
|
106
106
|
}
|
@@ -116,7 +116,7 @@ function findTreeNodeByKey(treeData, key, fieldNames) {
|
|
116
116
|
try {
|
117
117
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
118
118
|
var node = _step2.value;
|
119
|
-
|
119
|
+
traverse(node, []);
|
120
120
|
}
|
121
121
|
} catch (err) {
|
122
122
|
_iterator2.e(err);
|
@@ -135,23 +135,23 @@ function filterCheckedNodes(data, checkedKeys) {
|
|
135
135
|
var searchStr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
136
136
|
var fieldNames = arguments.length > 3 ? arguments[3] : undefined;
|
137
137
|
var result = [];
|
138
|
-
var
|
138
|
+
var traverse = function traverse(node) {
|
139
139
|
var _node$fieldNames$chil3;
|
140
140
|
var title = node[fieldNames.value] + node[fieldNames.label];
|
141
141
|
if (!searchStr) {
|
142
142
|
if (checkedKeys.includes(node[fieldNames.value])) {
|
143
143
|
var _node$fieldNames$chil;
|
144
|
-
var _children = (node === null || node === void 0 ? void 0 : (_node$fieldNames$chil = node[fieldNames.children]) === null || _node$fieldNames$chil === void 0 ? void 0 : _node$fieldNames$chil.map(
|
144
|
+
var _children = (node === null || node === void 0 ? void 0 : (_node$fieldNames$chil = node[fieldNames.children]) === null || _node$fieldNames$chil === void 0 ? void 0 : _node$fieldNames$chil.map(traverse).filter(Boolean)) || [];
|
145
145
|
return (0, _objectSpread4.default)((0, _objectSpread4.default)({}, node), {}, (0, _defineProperty2.default)({}, fieldNames.children, _children));
|
146
146
|
}
|
147
147
|
} else if (title.indexOf(searchStr) > -1) {
|
148
148
|
var _node$fieldNames$chil2;
|
149
|
-
var _children2 = ((_node$fieldNames$chil2 = node[fieldNames.children]) === null || _node$fieldNames$chil2 === void 0 ? void 0 : _node$fieldNames$chil2.map(
|
149
|
+
var _children2 = ((_node$fieldNames$chil2 = node[fieldNames.children]) === null || _node$fieldNames$chil2 === void 0 ? void 0 : _node$fieldNames$chil2.map(traverse).filter(Boolean)) || [];
|
150
150
|
return (0, _objectSpread4.default)((0, _objectSpread4.default)({}, node), {}, {
|
151
151
|
children: _children2
|
152
152
|
});
|
153
153
|
}
|
154
|
-
var children = (_node$fieldNames$chil3 = node[fieldNames.children]) === null || _node$fieldNames$chil3 === void 0 ? void 0 : _node$fieldNames$chil3.map(
|
154
|
+
var children = (_node$fieldNames$chil3 = node[fieldNames.children]) === null || _node$fieldNames$chil3 === void 0 ? void 0 : _node$fieldNames$chil3.map(traverse).filter(Boolean);
|
155
155
|
if (children && children.length > 0) {
|
156
156
|
return (0, _objectSpread4.default)((0, _objectSpread4.default)({}, node), {}, (0, _defineProperty2.default)({}, fieldNames.children, children));
|
157
157
|
}
|
@@ -163,7 +163,7 @@ function filterCheckedNodes(data, checkedKeys) {
|
|
163
163
|
try {
|
164
164
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
165
165
|
var node = _step3.value;
|
166
|
-
var filtered =
|
166
|
+
var filtered = traverse(node);
|
167
167
|
if (filtered) {
|
168
168
|
result.push(filtered);
|
169
169
|
}
|
@@ -211,7 +211,7 @@ var transformMessage = exports.transformMessage = function transformMessage(obj,
|
|
211
211
|
});
|
212
212
|
return _message;
|
213
213
|
};
|
214
|
-
var
|
214
|
+
var addLevelAndParentId = exports.addLevelAndParentId = function addLevelAndParentId() {
|
215
215
|
var tree = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
216
216
|
var fieldNames = arguments.length > 1 ? arguments[1] : undefined;
|
217
217
|
var currentLevel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
@@ -225,7 +225,7 @@ var _addLevelAndParentId = exports.addLevelAndParentId = function addLevelAndPar
|
|
225
225
|
newNode.level = currentLevel;
|
226
226
|
newNode.parentId = currentParentId;
|
227
227
|
if (node[children]) {
|
228
|
-
newNode[children] =
|
228
|
+
newNode[children] = addLevelAndParentId(node[children], fieldNames, currentLevel + 1, newNode[value]);
|
229
229
|
}
|
230
230
|
return newNode;
|
231
231
|
});
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { DraggableUploadListItemProps } from '../propsType';
|
2
|
-
export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) =>
|
2
|
+
export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => JSX.Element;
|
@@ -166,7 +166,7 @@ var ImageRender = function ImageRender(props) {
|
|
166
166
|
disabled: isView || disabled,
|
167
167
|
className: "action-item",
|
168
168
|
onClick: function () {
|
169
|
-
var _onClick = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
169
|
+
var _onClick = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
170
170
|
var res;
|
171
171
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
172
172
|
while (1) switch (_context.prev = _context.next) {
|
package/lib/ProViewer/index.js
CHANGED
@@ -112,8 +112,8 @@ var ProViewer = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
112
112
|
(0, _react.useEffect)(function () {
|
113
113
|
if (previewFile) {
|
114
114
|
try {
|
115
|
-
previewFile().then(/*#__PURE__*/function () {
|
116
|
-
var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(response) {
|
115
|
+
previewFile().then( /*#__PURE__*/function () {
|
116
|
+
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(response) {
|
117
117
|
var res, blob, blobUrl;
|
118
118
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
119
119
|
while (1) switch (_context.prev = _context.next) {
|
@@ -166,7 +166,7 @@ var ProEditableTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
166
166
|
* @returns {Promise<{nextList: IRowDataPropsType[], list: IRowDataPropsType[], rowData: IRowDataPropsType, rowIndex: number}>}
|
167
167
|
*/
|
168
168
|
var onMultipleDelete = /*#__PURE__*/function () {
|
169
|
-
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
169
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
170
170
|
var res, values, nextList, resetFieldsIndex;
|
171
171
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
172
172
|
while (1) switch (_context.prev = _context.next) {
|
@@ -272,7 +272,7 @@ var ProEditableTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
272
272
|
* @returns {Promise<{nextList: IRowDataPropsType[], list: IRowDataPropsType[], rowData: IRowDataPropsType, rowIndex: number}>}
|
273
273
|
*/
|
274
274
|
var onSave = /*#__PURE__*/function () {
|
275
|
-
var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(rowIndex, callback) {
|
275
|
+
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(rowIndex, callback) {
|
276
276
|
var _form$getFieldsValue$, _form$getFieldsValue, nextValues, res, values;
|
277
277
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
278
278
|
while (1) switch (_context2.prev = _context2.next) {
|
@@ -398,12 +398,12 @@ var ProEditableTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
|
|
398
398
|
}, antButtonProps), {}, {
|
399
399
|
children: buttonText
|
400
400
|
}))]
|
401
|
-
}) : (/*#__PURE__*/(0, _react.cloneElement)(buttonText, antButtonProps))
|
401
|
+
}) : ( /*#__PURE__*/(0, _react.cloneElement)(buttonText, antButtonProps))
|
402
402
|
}) : null
|
403
403
|
});
|
404
404
|
};
|
405
405
|
var validateFields = /*#__PURE__*/function () {
|
406
|
-
var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {
|
406
|
+
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {
|
407
407
|
var values, nextValues, nextList, isEditing;
|
408
408
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {
|
409
409
|
while (1) switch (_context3.prev = _context3.next) {
|
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
|
-
|