@zat-design/sisyphus-react 3.13.18-beta.4 → 3.13.18-beta.5
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.
@@ -19,8 +19,10 @@ 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
|
+
import _isObject from "lodash/isObject";
|
22
23
|
import _isFunction from "lodash/isFunction";
|
23
24
|
import _isEqual from "lodash/isEqual";
|
25
|
+
import _isBoolean from "lodash/isBoolean";
|
24
26
|
import _isArray from "lodash/isArray";
|
25
27
|
import _debounce from "lodash/debounce";
|
26
28
|
var _excluded = ["value", "onChange", "disabled", "labelInValue", "fieldNames", "readOnly", "mode", "addonAfter", "configOption", "title", "onFormat", "showCodeName", "optionRender", "customRender", "style", "className", "beforeOpen", "afterOpen", "isTooltip", "tooltip", "searchForm", "searchKey", "defaultOne", "otherProps"],
|
@@ -69,15 +71,12 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
69
71
|
otherProps = props.otherProps,
|
70
72
|
restProps = _objectWithoutProperties(props, _excluded);
|
71
73
|
var _tooltip = tooltip !== null && tooltip !== void 0 ? tooltip : isTooltip;
|
72
|
-
var
|
73
|
-
|
74
|
-
|
75
|
-
_readOnly = false;
|
74
|
+
var nextMode = useMemo(function () {
|
75
|
+
if (_isBoolean(readOnly) && readOnly === false) {
|
76
|
+
return 'input';
|
76
77
|
}
|
77
|
-
|
78
|
-
|
79
|
-
}
|
80
|
-
}
|
78
|
+
return mode;
|
79
|
+
}, [mode, readOnly]);
|
81
80
|
var contentForm = _Form.useFormInstance();
|
82
81
|
if (!configOption || Object.prototype.toString.call(configOption) !== '[object Object]') {
|
83
82
|
throw new Error('error: 请检查枚举选择弹框的配置项【configOption】');
|
@@ -184,8 +183,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
184
183
|
transformParams: transformParams,
|
185
184
|
transformResponse: transformResponse
|
186
185
|
}, _objectSpread({
|
187
|
-
|
188
|
-
ready: (initParams || defaultOne) && !_readOnly || visible
|
186
|
+
ready: (initParams || defaultOne) && nextMode === 'input' || visible
|
189
187
|
}, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options)),
|
190
188
|
data = _useRequestList2.data,
|
191
189
|
loading = _useRequestList2.loading,
|
@@ -216,7 +214,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
216
214
|
if (typeof data === 'string' || typeof data === 'number') {
|
217
215
|
return data;
|
218
216
|
}
|
219
|
-
if (
|
217
|
+
if (_isObject(data)) {
|
220
218
|
return handleFormat(_objectSpread(_objectSpread({}, data), {}, {
|
221
219
|
value: data[valueKey],
|
222
220
|
label: data[labelKey]
|
@@ -253,7 +251,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
253
251
|
* @returns {any}
|
254
252
|
*/
|
255
253
|
var getRowKey = function getRowKey(record) {
|
256
|
-
if (
|
254
|
+
if (_isFunction(rowKey)) {
|
257
255
|
return rowKey(record);
|
258
256
|
}
|
259
257
|
return record[rowKey];
|
@@ -275,7 +273,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
275
273
|
var handleChangeValue = function handleChangeValue(e) {
|
276
274
|
onChange(e.target.value);
|
277
275
|
preValue.current = e.target.value;
|
278
|
-
if (
|
276
|
+
if (nextMode === 'input') {
|
279
277
|
setState({
|
280
278
|
_value: e.target.value
|
281
279
|
});
|
@@ -533,7 +531,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
533
531
|
selectedRows: list,
|
534
532
|
selectedRowKeys: nextSelectRowKeys
|
535
533
|
});
|
536
|
-
} else if (
|
534
|
+
} else if (nextMode === 'input') {
|
537
535
|
// 当传入initParams且文本框非只读时,不调用接口获取初始化数据
|
538
536
|
setState({
|
539
537
|
_value: value,
|
@@ -621,13 +619,13 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
621
619
|
selectedRows: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRows) || [],
|
622
620
|
_value: undefined
|
623
621
|
});
|
624
|
-
} else if (
|
622
|
+
} else if (_isArray(value)) {
|
625
623
|
setState({
|
626
624
|
selectedRowKeys: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || value,
|
627
625
|
selectedRows: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRows) || value,
|
628
626
|
_value: value
|
629
627
|
});
|
630
|
-
} else if (
|
628
|
+
} else if (_isObject(value)) {
|
631
629
|
var initialValue = _defineProperty(_defineProperty({}, valueKey, value[valueKey]), labelKey, value[labelKey]);
|
632
630
|
setState({
|
633
631
|
selectedRowKeys: [value],
|
@@ -650,7 +648,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
650
648
|
nextState.selectedRowKeys = [];
|
651
649
|
nextState.selectedRows = [];
|
652
650
|
}
|
653
|
-
if (
|
651
|
+
if (_isObject(value)) {
|
654
652
|
nextState.selectedRowKeys = [getRowKey(value)];
|
655
653
|
nextState.selectedRows = [value];
|
656
654
|
}
|
@@ -676,12 +674,12 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
676
674
|
hideTooltipIfOpen(fieldRef.current, visible);
|
677
675
|
}, [visible]);
|
678
676
|
useEffect(function () {
|
679
|
-
if (value && !visible && isInit &&
|
677
|
+
if (value && !visible && isInit && nextMode === 'input') {
|
680
678
|
getInitValues();
|
681
679
|
}
|
682
680
|
}, [JSON.stringify(value), visible, isInit]);
|
683
681
|
useDebounceEffect(function () {
|
684
|
-
if (value && !visible &&
|
682
|
+
if (value && !visible && nextMode === 'select' && (!_isEqual(value, preValue.current) || (options === null || options === void 0 ? void 0 : options.length) === 0)) {
|
685
683
|
var _options$some;
|
686
684
|
preValue.current = value;
|
687
685
|
var _data3 = labelInValue ? value[valueKey] : value;
|
@@ -748,7 +746,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
748
746
|
});
|
749
747
|
}
|
750
748
|
}
|
751
|
-
if (
|
749
|
+
if (nextMode === 'input') {
|
752
750
|
if (labelInValue && _value && !_isEqual(value, _value)) {
|
753
751
|
setState({
|
754
752
|
_value: value,
|
@@ -771,7 +769,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
771
769
|
width: '100%'
|
772
770
|
},
|
773
771
|
block: true,
|
774
|
-
children: [
|
772
|
+
children: [nextMode === 'select' ? _jsx(ProSelect, _objectSpread({
|
775
773
|
value: value,
|
776
774
|
onChange: handleSelectValue,
|
777
775
|
disabled: disabled,
|
@@ -812,17 +810,19 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
812
810
|
});
|
813
811
|
}
|
814
812
|
useDeepCompareEffect(function () {
|
815
|
-
|
816
|
-
|
813
|
+
var dom = document.getElementById(uuid);
|
814
|
+
if (_tooltip && value && dom) {
|
817
815
|
dom.addEventListener('mouseover', function (e) {
|
818
|
-
|
816
|
+
var _e$target, _e$target$className, _e$target$className$i;
|
817
|
+
if (value && (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : (_e$target$className = _e$target.className) === null || _e$target$className === void 0 ? void 0 : (_e$target$className$i = _e$target$className.includes) === null || _e$target$className$i === void 0 ? void 0 : _e$target$className$i.call(_e$target$className, 'select'))) {
|
819
818
|
setState({
|
820
819
|
open: true
|
821
820
|
});
|
822
821
|
}
|
823
822
|
});
|
824
823
|
dom.addEventListener('mouseout', function (e) {
|
825
|
-
|
824
|
+
var _e$target2, _e$target2$className, _e$target2$className$;
|
825
|
+
if (e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : (_e$target2$className = _e$target2.className) === null || _e$target2$className === void 0 ? void 0 : (_e$target2$className$ = _e$target2$className.includes) === null || _e$target2$className$ === void 0 ? void 0 : _e$target2$className$.call(_e$target2$className, 'select')) {
|
826
826
|
setState({
|
827
827
|
open: false
|
828
828
|
});
|
@@ -830,14 +830,16 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
830
830
|
});
|
831
831
|
return function () {
|
832
832
|
dom.removeEventListener('mouseover', function (e) {
|
833
|
-
|
833
|
+
var _e$target3, _e$target3$className, _e$target3$className$;
|
834
|
+
if (value && (e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : (_e$target3$className = _e$target3.className) === null || _e$target3$className === void 0 ? void 0 : (_e$target3$className$ = _e$target3$className.includes) === null || _e$target3$className$ === void 0 ? void 0 : _e$target3$className$.call(_e$target3$className, 'select'))) {
|
834
835
|
setState({
|
835
836
|
open: true
|
836
837
|
});
|
837
838
|
}
|
838
839
|
});
|
839
840
|
dom.removeEventListener('mouseout', function (e) {
|
840
|
-
|
841
|
+
var _e$target4, _e$target4$className, _e$target4$className$;
|
842
|
+
if (e === null || e === void 0 ? void 0 : (_e$target4 = e.target) === null || _e$target4 === void 0 ? void 0 : (_e$target4$className = _e$target4.className) === null || _e$target4$className === void 0 ? void 0 : (_e$target4$className$ = _e$target4$className.includes) === null || _e$target4$className$ === void 0 ? void 0 : _e$target4$className$.call(_e$target4$className, 'select')) {
|
841
843
|
setState({
|
842
844
|
open: false
|
843
845
|
});
|
@@ -845,7 +847,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
845
847
|
});
|
846
848
|
};
|
847
849
|
}
|
848
|
-
}, [value, _tooltip]);
|
850
|
+
}, [value, _tooltip, document.getElementById(uuid)]);
|
849
851
|
useDeepCompareEffect(function () {
|
850
852
|
setState({
|
851
853
|
options: (tableProps === null || tableProps === void 0 ? void 0 : tableProps.dataSource) || []
|
@@ -890,7 +892,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
890
892
|
children: initRender
|
891
893
|
}) : initRender
|
892
894
|
}), _jsxs(ProDrawerForm, _objectSpread(_objectSpread({
|
893
|
-
|
895
|
+
mode: "Modal",
|
894
896
|
title: title,
|
895
897
|
onOk: handleFinish,
|
896
898
|
// @ts-ignore
|
@@ -27,8 +27,10 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
27
27
|
require("antd/es/form/style");
|
28
28
|
var _form = _interopRequireDefault(require("antd/es/form"));
|
29
29
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
30
|
+
var _isObject2 = _interopRequireDefault(require("lodash/isObject"));
|
30
31
|
var _isFunction2 = _interopRequireDefault(require("lodash/isFunction"));
|
31
32
|
var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
|
33
|
+
var _isBoolean2 = _interopRequireDefault(require("lodash/isBoolean"));
|
32
34
|
var _isArray2 = _interopRequireDefault(require("lodash/isArray"));
|
33
35
|
var _debounce2 = _interopRequireDefault(require("lodash/debounce"));
|
34
36
|
var _jsxRuntime = require("react/jsx-runtime");
|
@@ -77,15 +79,12 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
77
79
|
otherProps = props.otherProps,
|
78
80
|
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
79
81
|
var _tooltip = tooltip !== null && tooltip !== void 0 ? tooltip : isTooltip;
|
80
|
-
var
|
81
|
-
|
82
|
-
|
83
|
-
_readOnly = false;
|
82
|
+
var nextMode = (0, _react.useMemo)(function () {
|
83
|
+
if ((0, _isBoolean2.default)(readOnly) && readOnly === false) {
|
84
|
+
return 'input';
|
84
85
|
}
|
85
|
-
|
86
|
-
|
87
|
-
}
|
88
|
-
}
|
86
|
+
return mode;
|
87
|
+
}, [mode, readOnly]);
|
89
88
|
var contentForm = _form.default.useFormInstance();
|
90
89
|
if (!configOption || Object.prototype.toString.call(configOption) !== '[object Object]') {
|
91
90
|
throw new Error('error: 请检查枚举选择弹框的配置项【configOption】');
|
@@ -192,8 +191,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
192
191
|
transformParams: transformParams,
|
193
192
|
transformResponse: transformResponse
|
194
193
|
}, (0, _objectSpread5.default)({
|
195
|
-
|
196
|
-
ready: (initParams || defaultOne) && !_readOnly || visible
|
194
|
+
ready: (initParams || defaultOne) && nextMode === 'input' || visible
|
197
195
|
}, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options)),
|
198
196
|
data = _useRequestList2.data,
|
199
197
|
loading = _useRequestList2.loading,
|
@@ -224,7 +222,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
224
222
|
if (typeof data === 'string' || typeof data === 'number') {
|
225
223
|
return data;
|
226
224
|
}
|
227
|
-
if (
|
225
|
+
if ((0, _isObject2.default)(data)) {
|
228
226
|
return handleFormat((0, _objectSpread5.default)((0, _objectSpread5.default)({}, data), {}, {
|
229
227
|
value: data[valueKey],
|
230
228
|
label: data[labelKey]
|
@@ -261,7 +259,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
261
259
|
* @returns {any}
|
262
260
|
*/
|
263
261
|
var getRowKey = function getRowKey(record) {
|
264
|
-
if (
|
262
|
+
if ((0, _isFunction2.default)(rowKey)) {
|
265
263
|
return rowKey(record);
|
266
264
|
}
|
267
265
|
return record[rowKey];
|
@@ -283,7 +281,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
283
281
|
var handleChangeValue = function handleChangeValue(e) {
|
284
282
|
onChange(e.target.value);
|
285
283
|
preValue.current = e.target.value;
|
286
|
-
if (
|
284
|
+
if (nextMode === 'input') {
|
287
285
|
setState({
|
288
286
|
_value: e.target.value
|
289
287
|
});
|
@@ -541,7 +539,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
541
539
|
selectedRows: list,
|
542
540
|
selectedRowKeys: nextSelectRowKeys
|
543
541
|
});
|
544
|
-
} else if (
|
542
|
+
} else if (nextMode === 'input') {
|
545
543
|
// 当传入initParams且文本框非只读时,不调用接口获取初始化数据
|
546
544
|
setState({
|
547
545
|
_value: value,
|
@@ -629,13 +627,13 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
629
627
|
selectedRows: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRows) || [],
|
630
628
|
_value: undefined
|
631
629
|
});
|
632
|
-
} else if (
|
630
|
+
} else if ((0, _isArray2.default)(value)) {
|
633
631
|
setState({
|
634
632
|
selectedRowKeys: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRowKeys) || value,
|
635
633
|
selectedRows: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRows) || value,
|
636
634
|
_value: value
|
637
635
|
});
|
638
|
-
} else if (
|
636
|
+
} else if ((0, _isObject2.default)(value)) {
|
639
637
|
var initialValue = (0, _defineProperty2.default)((0, _defineProperty2.default)({}, valueKey, value[valueKey]), labelKey, value[labelKey]);
|
640
638
|
setState({
|
641
639
|
selectedRowKeys: [value],
|
@@ -658,7 +656,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
658
656
|
nextState.selectedRowKeys = [];
|
659
657
|
nextState.selectedRows = [];
|
660
658
|
}
|
661
|
-
if (
|
659
|
+
if ((0, _isObject2.default)(value)) {
|
662
660
|
nextState.selectedRowKeys = [getRowKey(value)];
|
663
661
|
nextState.selectedRows = [value];
|
664
662
|
}
|
@@ -684,12 +682,12 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
684
682
|
(0, _utils.hideTooltipIfOpen)(fieldRef.current, visible);
|
685
683
|
}, [visible]);
|
686
684
|
(0, _react.useEffect)(function () {
|
687
|
-
if (value && !visible && isInit &&
|
685
|
+
if (value && !visible && isInit && nextMode === 'input') {
|
688
686
|
getInitValues();
|
689
687
|
}
|
690
688
|
}, [JSON.stringify(value), visible, isInit]);
|
691
689
|
(0, _ahooks.useDebounceEffect)(function () {
|
692
|
-
if (value && !visible &&
|
690
|
+
if (value && !visible && nextMode === 'select' && (!(0, _isEqual2.default)(value, preValue.current) || (options === null || options === void 0 ? void 0 : options.length) === 0)) {
|
693
691
|
var _options$some;
|
694
692
|
preValue.current = value;
|
695
693
|
var _data3 = labelInValue ? value[valueKey] : value;
|
@@ -756,7 +754,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
756
754
|
});
|
757
755
|
}
|
758
756
|
}
|
759
|
-
if (
|
757
|
+
if (nextMode === 'input') {
|
760
758
|
if (labelInValue && _value && !(0, _isEqual2.default)(value, _value)) {
|
761
759
|
setState({
|
762
760
|
_value: value,
|
@@ -779,7 +777,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
779
777
|
width: '100%'
|
780
778
|
},
|
781
779
|
block: true,
|
782
|
-
children: [
|
780
|
+
children: [nextMode === 'select' ? (0, _jsxRuntime.jsx)(_index.ProSelect, (0, _objectSpread5.default)({
|
783
781
|
value: value,
|
784
782
|
onChange: handleSelectValue,
|
785
783
|
disabled: disabled,
|
@@ -820,17 +818,19 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
820
818
|
});
|
821
819
|
}
|
822
820
|
(0, _ahooks.useDeepCompareEffect)(function () {
|
823
|
-
|
824
|
-
|
821
|
+
var dom = document.getElementById(uuid);
|
822
|
+
if (_tooltip && value && dom) {
|
825
823
|
dom.addEventListener('mouseover', function (e) {
|
826
|
-
|
824
|
+
var _e$target, _e$target$className, _e$target$className$i;
|
825
|
+
if (value && (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : (_e$target$className = _e$target.className) === null || _e$target$className === void 0 ? void 0 : (_e$target$className$i = _e$target$className.includes) === null || _e$target$className$i === void 0 ? void 0 : _e$target$className$i.call(_e$target$className, 'select'))) {
|
827
826
|
setState({
|
828
827
|
open: true
|
829
828
|
});
|
830
829
|
}
|
831
830
|
});
|
832
831
|
dom.addEventListener('mouseout', function (e) {
|
833
|
-
|
832
|
+
var _e$target2, _e$target2$className, _e$target2$className$;
|
833
|
+
if (e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : (_e$target2$className = _e$target2.className) === null || _e$target2$className === void 0 ? void 0 : (_e$target2$className$ = _e$target2$className.includes) === null || _e$target2$className$ === void 0 ? void 0 : _e$target2$className$.call(_e$target2$className, 'select')) {
|
834
834
|
setState({
|
835
835
|
open: false
|
836
836
|
});
|
@@ -838,14 +838,16 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
838
838
|
});
|
839
839
|
return function () {
|
840
840
|
dom.removeEventListener('mouseover', function (e) {
|
841
|
-
|
841
|
+
var _e$target3, _e$target3$className, _e$target3$className$;
|
842
|
+
if (value && (e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : (_e$target3$className = _e$target3.className) === null || _e$target3$className === void 0 ? void 0 : (_e$target3$className$ = _e$target3$className.includes) === null || _e$target3$className$ === void 0 ? void 0 : _e$target3$className$.call(_e$target3$className, 'select'))) {
|
842
843
|
setState({
|
843
844
|
open: true
|
844
845
|
});
|
845
846
|
}
|
846
847
|
});
|
847
848
|
dom.removeEventListener('mouseout', function (e) {
|
848
|
-
|
849
|
+
var _e$target4, _e$target4$className, _e$target4$className$;
|
850
|
+
if (e === null || e === void 0 ? void 0 : (_e$target4 = e.target) === null || _e$target4 === void 0 ? void 0 : (_e$target4$className = _e$target4.className) === null || _e$target4$className === void 0 ? void 0 : (_e$target4$className$ = _e$target4$className.includes) === null || _e$target4$className$ === void 0 ? void 0 : _e$target4$className$.call(_e$target4$className, 'select')) {
|
849
851
|
setState({
|
850
852
|
open: false
|
851
853
|
});
|
@@ -853,7 +855,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
853
855
|
});
|
854
856
|
};
|
855
857
|
}
|
856
|
-
}, [value, _tooltip]);
|
858
|
+
}, [value, _tooltip, document.getElementById(uuid)]);
|
857
859
|
(0, _ahooks.useDeepCompareEffect)(function () {
|
858
860
|
setState({
|
859
861
|
options: (tableProps === null || tableProps === void 0 ? void 0 : tableProps.dataSource) || []
|
@@ -898,7 +900,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
898
900
|
children: initRender
|
899
901
|
}) : initRender
|
900
902
|
}), (0, _jsxRuntime.jsxs)(_index.ProDrawerForm, (0, _objectSpread5.default)((0, _objectSpread5.default)({
|
901
|
-
|
903
|
+
mode: "Modal",
|
902
904
|
title: title,
|
903
905
|
onOk: handleFinish,
|
904
906
|
// @ts-ignore
|