@zat-design/sisyphus-react 3.8.0-beat.1 → 3.8.0-beat.10
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 +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.js +3 -3
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +7 -4
- package/es/ProEditTable/components/RenderField/index.js +7 -5
- package/es/ProEditTable/components/RenderToolbar/index.js +1 -1
- package/es/ProEditTable/utils/config.js +2 -2
- package/es/ProEditTable/utils/index.js +5 -5
- package/es/ProEditTable/utils/tools.js +1 -1
- package/es/ProEnum/hooks/useEnumRequest.js +2 -2
- package/es/ProEnum/index.js +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.js +6 -3
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
- package/es/ProForm/components/combination/ProModalSelect/index.js +12 -6
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
- package/es/ProForm/components/old/ProAddress/index.js +1 -1
- package/es/ProForm/components/render/ChangedWrapper.js +4 -2
- package/es/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/es/ProForm/components/render/Render.js +4 -3
- package/es/ProForm/index.js +1 -1
- package/es/ProForm/utils/useForm.js +1 -1
- package/es/ProStep/components/Listener/index.js +1 -1
- package/es/ProStep/index.js +3 -3
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
- package/es/ProTable/hooks/useAntdTable.js +3 -3
- package/es/ProTable/index.js +2 -2
- package/es/ProTree/components/ProTree.js +1 -1
- package/es/ProTree/components/ProTreeSelect/index.js +13 -0
- package/es/ProTree/components/Tree.js +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 +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.js +3 -3
- package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +7 -4
- package/lib/ProEditTable/components/RenderField/index.js +7 -5
- package/lib/ProEditTable/components/RenderToolbar/index.js +1 -1
- package/lib/ProEditTable/utils/config.js +2 -2
- package/lib/ProEditTable/utils/index.js +5 -5
- package/lib/ProEditTable/utils/tools.js +1 -1
- package/lib/ProEnum/hooks/useEnumRequest.js +2 -2
- package/lib/ProEnum/index.js +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.js +6 -3
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +12 -6
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
- package/lib/ProForm/components/old/ProAddress/index.js +1 -1
- package/lib/ProForm/components/render/ChangedWrapper.js +4 -2
- package/lib/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/lib/ProForm/components/render/Render.js +4 -3
- package/lib/ProForm/index.js +1 -1
- package/lib/ProForm/utils/useForm.js +1 -1
- package/lib/ProStep/components/Listener/index.js +1 -1
- package/lib/ProStep/index.js +3 -3
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
- package/lib/ProTable/hooks/useAntdTable.js +3 -3
- package/lib/ProTable/index.js +2 -2
- package/lib/ProTree/components/ProTree.js +1 -1
- package/lib/ProTree/components/ProTreeSelect/index.js +13 -0
- package/lib/ProTree/components/Tree.js +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 +3 -4
- package/.vscode/extensions.json +0 -5
package/es/ProAction/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var ProAction = function ProAction(props) {
|
|
|
40
40
|
servicesArray = state.servicesArray;
|
|
41
41
|
var length = config.length;
|
|
42
42
|
var _onActionRun = /*#__PURE__*/function () {
|
|
43
|
-
var _ref = _asyncToGenerator(
|
|
43
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(currentIndex, array) {
|
|
44
44
|
var _actionProps$useReque, _options$onSuccess, _newServicesArray$cur, _newServicesArray$cur2, _newServicesArray$cur3, _actionProps$onAction, _actionProps$continue;
|
|
45
45
|
var actionProps, newServicesArray, _ref2, service, options, transformResponse, res, data, open, _newServicesArray$cur4, _newServicesArray$cur5, _newServicesArray$cur6, list, errorTitle, isContinue;
|
|
46
46
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
package/es/ProDownload/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var ProDownload = function ProDownload(props) {
|
|
|
37
37
|
onErrorConfig = _ref.onError;
|
|
38
38
|
defaultProps.headers = _objectSpread(_objectSpread({}, headers), defaultProps.headers);
|
|
39
39
|
var handDownload = /*#__PURE__*/function () {
|
|
40
|
-
var _ref2 = _asyncToGenerator(
|
|
40
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
41
41
|
var _params;
|
|
42
42
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
43
43
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -131,7 +131,7 @@ var ProDownload = function ProDownload(props) {
|
|
|
131
131
|
return _jsx(_Button, _objectSpread(_objectSpread({
|
|
132
132
|
className: cls,
|
|
133
133
|
onClick: function () {
|
|
134
|
-
var _onClick = _asyncToGenerator(
|
|
134
|
+
var _onClick = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
135
135
|
var res;
|
|
136
136
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
137
137
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -146,7 +146,7 @@ var ProDownload = function ProDownload(props) {
|
|
|
146
146
|
_context3.next = 13;
|
|
147
147
|
break;
|
|
148
148
|
}
|
|
149
|
-
if (!(beforeDownload instanceof /*#__PURE__*/_asyncToGenerator(
|
|
149
|
+
if (!(beforeDownload instanceof /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
150
150
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
151
151
|
while (1) switch (_context2.prev = _context2.next) {
|
|
152
152
|
case 0:
|
package/es/ProDownload/utils.js
CHANGED
|
@@ -70,7 +70,7 @@ export function getFilenameFromContentDisposition(contentDisposition) {
|
|
|
70
70
|
}
|
|
71
71
|
// 发起请求获取下载文件
|
|
72
72
|
export var DownloadRequest = /*#__PURE__*/function () {
|
|
73
|
-
var _ref3 = _asyncToGenerator(
|
|
73
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
|
|
74
74
|
var url, _ref2$method, method, params, headers, transformResponse, fileName, onFinish, onError, config, res, fileBlob, data, contentFileName;
|
|
75
75
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
76
76
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -97,8 +97,8 @@ export var DownloadRequest = /*#__PURE__*/function () {
|
|
|
97
97
|
config.headers = _objectSpread(_objectSpread({}, config.headers), headers);
|
|
98
98
|
}
|
|
99
99
|
_context2.next = 7;
|
|
100
|
-
return fetch(url, config).then(
|
|
101
|
-
var _ref4 = _asyncToGenerator(
|
|
100
|
+
return fetch(url, config).then(/*#__PURE__*/function () {
|
|
101
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
102
102
|
var _data, errorMsg;
|
|
103
103
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
104
104
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -46,7 +46,7 @@ var ProDrawer = function ProDrawer(_ref) {
|
|
|
46
46
|
loading = _useState2[0],
|
|
47
47
|
toggleLoading = _useState2[1];
|
|
48
48
|
var noRenderFooter = isView || footer === false || footer === null;
|
|
49
|
-
var onConfirm = useCallback(
|
|
49
|
+
var onConfirm = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
50
50
|
var _locale$ProDrawerForm, _locale$ProDrawerForm2, _locale$ProDrawerForm3, _locale$ProDrawerForm4;
|
|
51
51
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
52
52
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -74,7 +74,7 @@ var ProDrawer = function ProDrawer(_ref) {
|
|
|
74
74
|
}
|
|
75
75
|
}, _callee);
|
|
76
76
|
})), [onCancel, modalRef.current]);
|
|
77
|
-
var handleFinish = useCallback(
|
|
77
|
+
var handleFinish = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
78
78
|
var values, _error$errorFields, _error$errorFields$;
|
|
79
79
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
80
80
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -166,7 +166,7 @@ var ProDrawer = function ProDrawer(_ref) {
|
|
|
166
166
|
if (noRenderFooter) {
|
|
167
167
|
return null;
|
|
168
168
|
}
|
|
169
|
-
if (
|
|
169
|
+
if (/*#__PURE__*/React.isValidElement(footer)) {
|
|
170
170
|
return _jsx("div", {
|
|
171
171
|
className: "pro-drawer-footer",
|
|
172
172
|
children: footer
|
|
@@ -176,7 +176,7 @@ var ProDrawer = function ProDrawer(_ref) {
|
|
|
176
176
|
return _jsx("div", {
|
|
177
177
|
className: "pro-drawer-footer",
|
|
178
178
|
children: footer.map(function (item) {
|
|
179
|
-
if (
|
|
179
|
+
if (/*#__PURE__*/React.isValidElement(item)) {
|
|
180
180
|
return item;
|
|
181
181
|
}
|
|
182
182
|
return false;
|
|
@@ -52,7 +52,7 @@ var ProModal = function ProModal(_ref) {
|
|
|
52
52
|
'pro-modal-no-footer': noRenderFooter,
|
|
53
53
|
'pro-modal-footer-shadow': height >= 450
|
|
54
54
|
}]);
|
|
55
|
-
var handleFinish = useCallback(
|
|
55
|
+
var handleFinish = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
56
56
|
var values, _error$errorFields, _error$errorFields$;
|
|
57
57
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
58
58
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -146,7 +146,7 @@ var ProModal = function ProModal(_ref) {
|
|
|
146
146
|
if (noRenderFooter) {
|
|
147
147
|
return null;
|
|
148
148
|
}
|
|
149
|
-
if (
|
|
149
|
+
if (/*#__PURE__*/React.isValidElement(footer)) {
|
|
150
150
|
return _jsx("div", {
|
|
151
151
|
className: "pro-drawer-footer",
|
|
152
152
|
children: footer
|
|
@@ -156,7 +156,7 @@ var ProModal = function ProModal(_ref) {
|
|
|
156
156
|
return _jsx("div", {
|
|
157
157
|
className: "pro-drawer-footer",
|
|
158
158
|
children: footer.map(function (item) {
|
|
159
|
-
if (
|
|
159
|
+
if (/*#__PURE__*/React.isValidElement(item)) {
|
|
160
160
|
return item;
|
|
161
161
|
}
|
|
162
162
|
return false;
|
package/es/ProEditLabel/index.js
CHANGED
|
@@ -134,7 +134,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
|
|
|
134
134
|
* pop确认回调
|
|
135
135
|
*/
|
|
136
136
|
var onConfirmHandle = /*#__PURE__*/function () {
|
|
137
|
-
var _ref2 = _asyncToGenerator(
|
|
137
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
138
138
|
var res, value;
|
|
139
139
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
140
140
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -221,7 +221,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
|
|
|
221
221
|
})
|
|
222
222
|
});
|
|
223
223
|
if (disabled) {
|
|
224
|
-
if (
|
|
224
|
+
if (/*#__PURE__*/React.isValidElement(children)) {
|
|
225
225
|
return children;
|
|
226
226
|
}
|
|
227
227
|
if (props.value && !popupProps) {
|
|
@@ -253,7 +253,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
|
|
|
253
253
|
if (mode === 'popup') {
|
|
254
254
|
// 查看时内容渲染
|
|
255
255
|
var labelRender = function labelRender() {
|
|
256
|
-
if (
|
|
256
|
+
if (/*#__PURE__*/React.isValidElement(children)) {
|
|
257
257
|
return children;
|
|
258
258
|
}
|
|
259
259
|
return TextNode;
|
|
@@ -82,7 +82,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
82
82
|
disabled: isDisabled,
|
|
83
83
|
okText: locale.ProEditTable.confirm,
|
|
84
84
|
cancelText: locale.ProEditTable.cancel,
|
|
85
|
-
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (
|
|
85
|
+
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (/*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
|
|
86
86
|
record: record,
|
|
87
87
|
index: index,
|
|
88
88
|
disabled: isDisabled
|
|
@@ -92,7 +92,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
92
92
|
children: btnConfig.label
|
|
93
93
|
}))
|
|
94
94
|
}) : _jsx(_Fragment, {
|
|
95
|
-
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (
|
|
95
|
+
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (/*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
|
|
96
96
|
record: record,
|
|
97
97
|
index: index,
|
|
98
98
|
disabled: isDisabled,
|
|
@@ -109,7 +109,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
109
109
|
}))
|
|
110
110
|
})
|
|
111
111
|
}) : _jsx(_Fragment, {
|
|
112
|
-
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (
|
|
112
|
+
children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (/*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(actionBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
|
|
113
113
|
record: record,
|
|
114
114
|
index: index
|
|
115
115
|
}))) : _jsx(_Button, _objectSpread(_objectSpread({
|
|
@@ -4,7 +4,7 @@ import "antd/es/tooltip/style";
|
|
|
4
4
|
import _Tooltip from "antd/es/tooltip";
|
|
5
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
6
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
|
-
var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type"];
|
|
7
|
+
var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type", "normalize", "valuePropName"];
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
import React, { useMemo } from 'react';
|
|
10
10
|
import classNames from 'classnames';
|
|
@@ -41,7 +41,7 @@ var getOriginalValue = function getOriginalValue(_ref) {
|
|
|
41
41
|
var keyValue = rowValue[rowKeyName]; // 获取表单中rowKey值
|
|
42
42
|
if (!keyValue) return undefined;
|
|
43
43
|
var originalValueList = get(originalValues, originalName.slice(0, rowKeyPath.length - 2));
|
|
44
|
-
var originalValueRow = originalValueList.find(function (item) {
|
|
44
|
+
var originalValueRow = originalValueList === null || originalValueList === void 0 ? void 0 : originalValueList.find(function (item) {
|
|
45
45
|
return item[rowKeyPath[rowKeyPath.length - 1]] === keyValue;
|
|
46
46
|
});
|
|
47
47
|
var originalValue;
|
|
@@ -78,6 +78,8 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
|
78
78
|
rowKeyPath = props.rowKeyPath,
|
|
79
79
|
children = props.children,
|
|
80
80
|
type = props.type,
|
|
81
|
+
normalize = props.normalize,
|
|
82
|
+
valuePropName = props.valuePropName,
|
|
81
83
|
rest = _objectWithoutProperties(props, _excluded);
|
|
82
84
|
var _ref2 = useProConfig('ProEditTable') || {},
|
|
83
85
|
isDiffAll = _ref2.isDiffAll;
|
|
@@ -96,14 +98,15 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
|
96
98
|
var noChange = !equalWith && (!originalValues || isDiffAll ? false : isEmpty(originalValue));
|
|
97
99
|
var diffType = useMemo(function () {
|
|
98
100
|
if (!isWatch || noChange) return 'same';
|
|
101
|
+
var _value = normalize ? normalize(props[valuePropName]) : props[valuePropName];
|
|
99
102
|
return diffOriginal({
|
|
100
|
-
value:
|
|
103
|
+
value: _value,
|
|
101
104
|
originalValue: originalValue,
|
|
102
105
|
form: form,
|
|
103
106
|
equalWith: equalWith
|
|
104
107
|
// name: isString(namesStr) ? namesStr : originalName || name,
|
|
105
108
|
});
|
|
106
|
-
}, [props
|
|
109
|
+
}, [props[valuePropName], originalValue]);
|
|
107
110
|
var isAdd = diffType === 'add';
|
|
108
111
|
var isChanged = diffType === 'changed';
|
|
109
112
|
if (!isWatch || noChange) {
|
|
@@ -246,7 +246,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
246
246
|
if (typeof _editRender === 'function') {
|
|
247
247
|
TargetComponent = _editRender.apply(void 0, rowParams);
|
|
248
248
|
}
|
|
249
|
-
if (
|
|
249
|
+
if (/*#__PURE__*/React.isValidElement(_editRender)) {
|
|
250
250
|
TargetComponent = _editRender;
|
|
251
251
|
}
|
|
252
252
|
}
|
|
@@ -262,7 +262,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
262
262
|
children: View
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
|
-
if (
|
|
265
|
+
if (/*#__PURE__*/React.isValidElement(viewRender)) {
|
|
266
266
|
TargetComponent = viewRender;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
@@ -305,7 +305,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
305
305
|
}, 100);
|
|
306
306
|
};
|
|
307
307
|
// 单元格更新数据时,加个防抖,防止更新频率过快,卡顿
|
|
308
|
-
var _onChange = debounce(
|
|
308
|
+
var _onChange = debounce(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
309
309
|
var _len2,
|
|
310
310
|
args,
|
|
311
311
|
_key2,
|
|
@@ -409,7 +409,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
409
409
|
}, _callee);
|
|
410
410
|
})), 300);
|
|
411
411
|
var _onblur = /*#__PURE__*/function () {
|
|
412
|
-
var _ref3 = _asyncToGenerator(
|
|
412
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
413
413
|
var _TargetComponent3, _TargetComponent3$pro, _TargetComponent$prop4;
|
|
414
414
|
var _len3,
|
|
415
415
|
args,
|
|
@@ -545,7 +545,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
545
545
|
var getFieldItem = function getFieldItem() {
|
|
546
546
|
var _componentProps;
|
|
547
547
|
var FormItem = null;
|
|
548
|
-
var FieldComponent = /*#__PURE__*/React.isValidElement(TargetComponent) ? (
|
|
548
|
+
var FieldComponent = /*#__PURE__*/React.isValidElement(TargetComponent) ? (/*#__PURE__*/React.cloneElement(TargetComponent, componentProps)) : _jsx(TargetComponent, _objectSpread({}, componentProps));
|
|
549
549
|
if (originalValues) {
|
|
550
550
|
FieldComponent = _jsx(ListChangedWrapper, {
|
|
551
551
|
name: cellName,
|
|
@@ -559,6 +559,8 @@ var RenderField = function RenderField(_ref) {
|
|
|
559
559
|
equalWith: equalWith,
|
|
560
560
|
type: type,
|
|
561
561
|
onChange: _onChange,
|
|
562
|
+
valuePropName: _formItemProps.valuePropName,
|
|
563
|
+
normalize: _formItemProps.normalize,
|
|
562
564
|
children: FieldComponent
|
|
563
565
|
});
|
|
564
566
|
}
|
|
@@ -76,7 +76,7 @@ var RenderToolbar = function RenderToolbar(config) {
|
|
|
76
76
|
toolbar.show = show !== null && show !== void 0 ? show : true;
|
|
77
77
|
toolbar.needConfirm = needConfirm !== null && needConfirm !== void 0 ? needConfirm : true;
|
|
78
78
|
toolbar.onEvent = /*#__PURE__*/function () {
|
|
79
|
-
var _ref = _asyncToGenerator(
|
|
79
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(record, index) {
|
|
80
80
|
var onEvent, result;
|
|
81
81
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
82
82
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -63,7 +63,7 @@ export var actions = {
|
|
|
63
63
|
});
|
|
64
64
|
},
|
|
65
65
|
save: function () {
|
|
66
|
-
var _save = _asyncToGenerator(
|
|
66
|
+
var _save = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
|
|
67
67
|
var record, editingKeys, setState, form, rowName, virtualRowName, result, updateData, nextEditingKeys, values;
|
|
68
68
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
69
69
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -166,7 +166,7 @@ export var actions = {
|
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
168
|
add: function () {
|
|
169
|
-
var _add = _asyncToGenerator(
|
|
169
|
+
var _add = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref5) {
|
|
170
170
|
var _tableRef$current$que, _tableRef$current$que2;
|
|
171
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) {
|
|
@@ -26,7 +26,7 @@ import locale from '../../locale';
|
|
|
26
26
|
// 渲染操作栏
|
|
27
27
|
var getActionColumn = function getActionColumn(config) {
|
|
28
28
|
var _cloneDeepWith = cloneDeepWith(config, function (value) {
|
|
29
|
-
if (
|
|
29
|
+
if (/*#__PURE__*/React.isValidElement(value)) {
|
|
30
30
|
return value;
|
|
31
31
|
}
|
|
32
32
|
}),
|
|
@@ -83,7 +83,7 @@ var getActionColumn = function getActionColumn(config) {
|
|
|
83
83
|
action.show = show !== null && show !== void 0 ? show : true;
|
|
84
84
|
action.needConfirm = needConfirm !== null && needConfirm !== void 0 ? needConfirm : true;
|
|
85
85
|
action.onEvent = /*#__PURE__*/function () {
|
|
86
|
-
var _ref = _asyncToGenerator(
|
|
86
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(record, index) {
|
|
87
87
|
var _form$getFieldValue;
|
|
88
88
|
var rowName, _record, onEvent, result;
|
|
89
89
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -234,7 +234,7 @@ export var transformColumns = function transformColumns() {
|
|
|
234
234
|
children: [before, columnTitle, _jsx(_Tooltip, _objectSpread(_objectSpread({
|
|
235
235
|
title: tooltipTitle !== null && tooltipTitle !== void 0 ? tooltipTitle : tooltip
|
|
236
236
|
}, resetProps), {}, {
|
|
237
|
-
children: icon ? (
|
|
237
|
+
children: icon ? (/*#__PURE__*/React.cloneElement(icon, {
|
|
238
238
|
className: 'icon-tip'
|
|
239
239
|
})) : _jsx(ReactSVG, {
|
|
240
240
|
className: "icon-tip",
|
|
@@ -380,8 +380,8 @@ export var transformColumns = function transformColumns() {
|
|
|
380
380
|
}
|
|
381
381
|
// cacheMap 用来存储缓存值,若有值后不再请求
|
|
382
382
|
if (JSON.stringify(cacheMap.current) === '{}') {
|
|
383
|
-
Promise.all(Object.entries(_cacheMap).map(
|
|
384
|
-
var _ref3 = _asyncToGenerator(
|
|
383
|
+
Promise.all(Object.entries(_cacheMap).map(/*#__PURE__*/function () {
|
|
384
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item) {
|
|
385
385
|
var _item, key, value, _ref4, service, option;
|
|
386
386
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
387
387
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -191,7 +191,7 @@ export var handleScrollToError = function handleScrollToError() {
|
|
|
191
191
|
*/
|
|
192
192
|
export function cloneDeepFilterNode(value) {
|
|
193
193
|
return cloneDeepWith(value, function (val) {
|
|
194
|
-
if (
|
|
194
|
+
if (/*#__PURE__*/React.isValidElement(val)) {
|
|
195
195
|
return val;
|
|
196
196
|
}
|
|
197
197
|
});
|
|
@@ -52,7 +52,7 @@ var useEnumRequest = function useEnumRequest(props, dispatch) {
|
|
|
52
52
|
staleTime: 6e4 * 60
|
|
53
53
|
}, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options), {}, {
|
|
54
54
|
setCache: function () {
|
|
55
|
-
var _setCache = _asyncToGenerator(
|
|
55
|
+
var _setCache = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
56
56
|
var response, _locale$ProEnum2, _useRequest$options, ignoreCodes, cacheData;
|
|
57
57
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
58
58
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -162,7 +162,7 @@ var useEnumRequest = function useEnumRequest(props, dispatch) {
|
|
|
162
162
|
}
|
|
163
163
|
}));
|
|
164
164
|
var mergeData = /*#__PURE__*/function () {
|
|
165
|
-
var _ref3 = _asyncToGenerator(
|
|
165
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
166
166
|
var cacheData, _useRequest$options2, _useRequest$options3, enumData, cacheCodes, codes, ignoreCodes, diff, response, res, _locale$ProEnum6;
|
|
167
167
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
168
168
|
while (1) switch (_context2.prev = _context2.next) {
|
package/es/ProEnum/index.js
CHANGED
|
@@ -153,7 +153,7 @@ var ProEnum = function ProEnum(props) {
|
|
|
153
153
|
list = [];
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
if (
|
|
156
|
+
if (/*#__PURE__*/React.isValidElement(component)) {
|
|
157
157
|
var Component = component;
|
|
158
158
|
return _jsx(Component, _objectSpread(_objectSpread({}, enumProps), {}, {
|
|
159
159
|
dataSource: list,
|
|
@@ -133,7 +133,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
133
133
|
return _actionProps;
|
|
134
134
|
}, [props.actionProps]);
|
|
135
135
|
var handleClick = /*#__PURE__*/function () {
|
|
136
|
-
var _ref6 = _asyncToGenerator(
|
|
136
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(defaultCallback, callback, index, item) {
|
|
137
137
|
var value, data;
|
|
138
138
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
139
139
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -272,7 +272,7 @@ var ActionButton = function ActionButton(props) {
|
|
|
272
272
|
},
|
|
273
273
|
children: label
|
|
274
274
|
}))
|
|
275
|
-
}), "".concat(item === null || item === void 0 ? void 0 : item.type).concat(index)) : (
|
|
275
|
+
}), "".concat(item === null || item === void 0 ? void 0 : item.type).concat(index)) : (/*#__PURE__*/_createElement(_Button, _objectSpread(_objectSpread({}, rest), {}, {
|
|
276
276
|
key: "".concat(item === null || item === void 0 ? void 0 : item.type).concat(index),
|
|
277
277
|
type: "text",
|
|
278
278
|
onClick: function onClick(e) {
|
|
@@ -55,7 +55,7 @@ var ToolbarButton = function ToolbarButton(props) {
|
|
|
55
55
|
return _toolbarProps;
|
|
56
56
|
}, [props.toolbarProps]);
|
|
57
57
|
var handleClick = /*#__PURE__*/function () {
|
|
58
|
-
var _ref2 = _asyncToGenerator(
|
|
58
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(defaultCallback, callback, item) {
|
|
59
59
|
var value, data;
|
|
60
60
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
61
61
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -23,7 +23,7 @@ export var namesPathTransform = function namesPathTransform(_ref) {
|
|
|
23
23
|
// 比较memo
|
|
24
24
|
export var memoWith = function memoWith(pre, next) {
|
|
25
25
|
return isEqualWith(pre, next, function (objValue, othValue) {
|
|
26
|
-
if (
|
|
26
|
+
if (/*#__PURE__*/React.isValidElement(objValue) && /*#__PURE__*/React.isValidElement(othValue)) {
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
29
29
|
// 移除解决formlist函数里不更新问题
|
|
@@ -48,7 +48,7 @@ var ComRender = function ComRender(props) {
|
|
|
48
48
|
};
|
|
49
49
|
var _props = mergedGetValueProps(fieldProps.value);
|
|
50
50
|
var componentProps = _objectSpread(_objectSpread(_objectSpread({}, fieldProps), rest), _props);
|
|
51
|
-
var Component = component ? (
|
|
51
|
+
var Component = component ? (/*#__PURE__*/React.cloneElement(component, _objectSpread({}, componentProps))) : _jsx(TypeComponent, _objectSpread({}, componentProps));
|
|
52
52
|
var Com = getComRender(Component, props, componentProps);
|
|
53
53
|
return _jsx(FieldProvider, {
|
|
54
54
|
value: _objectSpread(_objectSpread({}, contextProps), {}, {
|
|
@@ -96,8 +96,11 @@ var ProCascader = function ProCascader(props) {
|
|
|
96
96
|
enumDataSource = _ref5$ === void 0 ? [] : _ref5$;
|
|
97
97
|
var realDataSource = useMemo(function () {
|
|
98
98
|
var innerDataSource = dataSource || (addressCode ? enumDataSource : []);
|
|
99
|
-
var result = isAddressMode && realLevel === 2 ? _filterDataSource(innerDataSource, level, fieldNames) : innerDataSource;
|
|
100
|
-
|
|
99
|
+
var result = transformDataName(isAddressMode && realLevel === 2 ? _filterDataSource(innerDataSource, level, fieldNames) : innerDataSource, fieldNames);
|
|
100
|
+
if (transformResponse) {
|
|
101
|
+
return transformResponse(result);
|
|
102
|
+
}
|
|
103
|
+
return result;
|
|
101
104
|
}, [isAddressMode, addressCode, realLevel, dataSource, enumDataSource === null || enumDataSource === void 0 ? void 0 : enumDataSource.length]);
|
|
102
105
|
var _useRequest = _objectSpread({}, useRequest),
|
|
103
106
|
service = _useRequest.service,
|
|
@@ -112,7 +115,7 @@ var ProCascader = function ProCascader(props) {
|
|
|
112
115
|
defaultLabel = _useState4[0],
|
|
113
116
|
setDefaultLabel = _useState4[1];
|
|
114
117
|
var getFirstLevelOptions = /*#__PURE__*/function () {
|
|
115
|
-
var _ref6 = _asyncToGenerator(
|
|
118
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
116
119
|
var _yield$service, data, newData, transFormData, serviceData;
|
|
117
120
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
118
121
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -24,7 +24,7 @@ var useDefaultOptions = function useDefaultOptions(options) {
|
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
var defaultService = /*#__PURE__*/function () {
|
|
27
|
-
var _ref = _asyncToGenerator(
|
|
27
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28
28
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29
29
|
while (1) switch (_context.prev = _context.next) {
|
|
30
30
|
case 0:
|
|
@@ -19,7 +19,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
19
19
|
import "antd/es/form/style";
|
|
20
20
|
import _Form from "antd/es/form";
|
|
21
21
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
22
|
-
var _excluded = ["value", "onChange", "disabled", "labelInValue", "fieldNames", "readOnly", "addonAfter", "configOption", "title", "onFormat", "showCodeName", "optionRender", "customRender", "style", "className", "beforeOpen", "isTooltip", "searchForm", "searchKey", "defaultOne"],
|
|
22
|
+
var _excluded = ["value", "onChange", "disabled", "labelInValue", "fieldNames", "readOnly", "addonAfter", "configOption", "title", "onFormat", "showCodeName", "optionRender", "customRender", "style", "className", "beforeOpen", "afterOpen", "isTooltip", "searchForm", "searchKey", "defaultOne"],
|
|
23
23
|
_excluded2 = ["onOk"],
|
|
24
24
|
_excluded3 = ["rowKey", "columns", "rowSelection"];
|
|
25
25
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -53,6 +53,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
53
53
|
style = props.style,
|
|
54
54
|
className = props.className,
|
|
55
55
|
beforeOpen = props.beforeOpen,
|
|
56
|
+
afterOpen = props.afterOpen,
|
|
56
57
|
isTooltip = props.isTooltip,
|
|
57
58
|
searchForm = props.searchForm,
|
|
58
59
|
searchKey = props.searchKey,
|
|
@@ -237,7 +238,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
237
238
|
onChange(val, option);
|
|
238
239
|
};
|
|
239
240
|
var handleClick = /*#__PURE__*/function () {
|
|
240
|
-
var _ref7 = _asyncToGenerator(
|
|
241
|
+
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
241
242
|
var _yield$beforeOpen, res;
|
|
242
243
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
243
244
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -272,6 +273,11 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
272
273
|
setState({
|
|
273
274
|
onOff: true
|
|
274
275
|
});
|
|
276
|
+
setTimeout(function () {
|
|
277
|
+
afterOpen === null || afterOpen === void 0 ? void 0 : afterOpen({
|
|
278
|
+
setInnerState: setState
|
|
279
|
+
});
|
|
280
|
+
}, 100);
|
|
275
281
|
}
|
|
276
282
|
case 14:
|
|
277
283
|
case "end":
|
|
@@ -299,7 +305,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
299
305
|
}
|
|
300
306
|
};
|
|
301
307
|
var handleFinish = /*#__PURE__*/function () {
|
|
302
|
-
var _ref8 = _asyncToGenerator(
|
|
308
|
+
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
303
309
|
var _nextSelectedRows, _nextSelectedRows2, nextSelectedRows, record, flag, res;
|
|
304
310
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
305
311
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -364,7 +370,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
364
370
|
};
|
|
365
371
|
}();
|
|
366
372
|
var handleSearch = /*#__PURE__*/function () {
|
|
367
|
-
var _ref9 = _asyncToGenerator(
|
|
373
|
+
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
368
374
|
var values;
|
|
369
375
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
370
376
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -437,7 +443,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
437
443
|
};
|
|
438
444
|
// 初始化回显,当传入initParams时,前端用来回险
|
|
439
445
|
var getInitValues = /*#__PURE__*/function () {
|
|
440
|
-
var _ref10 = _asyncToGenerator(
|
|
446
|
+
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
441
447
|
var _contentForm$getField, _useRequest$options2, _useRequest$options3, queryBean, page, params, res, _res$data2, _list, list, _data, nextSelectRowKeys;
|
|
442
448
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
443
449
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -500,7 +506,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
500
506
|
}();
|
|
501
507
|
// 初始化回显,当传入initParams时,前端用来回险
|
|
502
508
|
var getDefaultOneValues = /*#__PURE__*/function () {
|
|
503
|
-
var _ref11 = _asyncToGenerator(
|
|
509
|
+
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
504
510
|
var _useRequest$options4, _useRequest$options5;
|
|
505
511
|
var queryBean, page, params, res, _res$data3, _list2, list, _data2, nextSelectRowKeys;
|
|
506
512
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -92,7 +92,7 @@ export function ProAddress(_ref3) {
|
|
|
92
92
|
secondCitys = _useState6[0],
|
|
93
93
|
setSecondCitys = _useState6[1];
|
|
94
94
|
var queryCity = /*#__PURE__*/function () {
|
|
95
|
-
var _ref5 = _asyncToGenerator(
|
|
95
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(code, type) {
|
|
96
96
|
var cityList, _cityList, newList, _secondCitys;
|
|
97
97
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
98
98
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -5,7 +5,7 @@ import _Tooltip from "antd/es/tooltip";
|
|
|
5
5
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
7
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
8
|
-
var _excluded = ["name", "names", "namesStr", "form", "equalWith", "children", "type", "diffConfig", "valuePropName"];
|
|
8
|
+
var _excluded = ["name", "names", "namesStr", "form", "equalWith", "children", "type", "diffConfig", "valuePropName", "normalize"];
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
import classNames from 'classnames';
|
|
11
11
|
import { get } from 'lodash';
|
|
@@ -25,6 +25,7 @@ var ChangedWrapper = function ChangedWrapper(props) {
|
|
|
25
25
|
diffConfig = props.diffConfig,
|
|
26
26
|
_props$valuePropName = props.valuePropName,
|
|
27
27
|
valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
|
|
28
|
+
normalize = props.normalize,
|
|
28
29
|
rest = _objectWithoutProperties(props, _excluded);
|
|
29
30
|
var _useProConfig = useProConfig('ProForm'),
|
|
30
31
|
isDiffAll = _useProConfig.isDiffAll;
|
|
@@ -39,9 +40,10 @@ var ChangedWrapper = function ChangedWrapper(props) {
|
|
|
39
40
|
var noChange = !equalWith && (!originalValues || isDiffAll ? false : isEmpty(originalValue));
|
|
40
41
|
var diffType = useMemo(function () {
|
|
41
42
|
if (!isWatch || noChange) return 'same';
|
|
43
|
+
var _value = normalize ? normalize(props[valuePropName]) : props[valuePropName];
|
|
42
44
|
return diffOriginal({
|
|
43
45
|
originalValue: originalValue,
|
|
44
|
-
value:
|
|
46
|
+
value: _value,
|
|
45
47
|
form: form,
|
|
46
48
|
equalWith: equalWith
|
|
47
49
|
// name: namesStr || name,
|
|
@@ -22,7 +22,7 @@ var ConfirmWrapper = function ConfirmWrapper(props) {
|
|
|
22
22
|
var _ProForm$useFieldProp = ProForm.useFieldProps(),
|
|
23
23
|
form = _ProForm$useFieldProp.form;
|
|
24
24
|
var handleChange = /*#__PURE__*/function () {
|
|
25
|
-
var _ref = _asyncToGenerator(
|
|
25
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
|
|
26
26
|
var _len,
|
|
27
27
|
other,
|
|
28
28
|
_key,
|