@signalplus/params-about 0.1.5 → 0.1.6

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.
Files changed (3) hide show
  1. package/index.d.ts +9 -6
  2. package/lib/es/index.js +120 -118
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -77,9 +77,9 @@ interface ParamFormData {
77
77
  interface ParamFormProps {
78
78
  parentOptions: ParentSelectorProps['parentOptions'];
79
79
  expiriesOptions: string[];
80
- initialValues?: ParamFormData;
80
+ initialValues?: Partial<ParamFormData>;
81
81
  onChange?(data: ParamFormData): void;
82
- onSubmit?(data: ParamFormData): Promise<any>;
82
+ onSubmit?(data: ParamFormData): any;
83
83
  }
84
84
  declare class ParamForm extends PureComponent<ParamFormProps> {
85
85
  ref: React.RefObject<any>;
@@ -129,7 +129,7 @@ interface ParamValueEditorProps {
129
129
  valueType: ParamType;
130
130
  initialValues: ParamValueEditorData;
131
131
  onChange?(data: ParamValueEditorData): void;
132
- onSubmit?(data: ParamValueEditorData): Promise<any>;
132
+ onSubmit?(data: ParamValueEditorData): any;
133
133
  }
134
134
  declare class ParamValueEditor extends PureComponent<ParamValueEditorProps> {
135
135
  ref: React.RefObject<any>;
@@ -181,9 +181,9 @@ interface ParamGroupEditorProps extends Required<Pick<ImageUploadProps, 'getSign
181
181
  * 传了表示为有父级
182
182
  * */
183
183
  allParams?: ParentSelectorProps['parentOptions'];
184
- initialValues?: ParamGroupEditorData;
184
+ initialValues?: Partial<ParamGroupEditorData>;
185
185
  onChange?(data: ParamGroupEditorData): void;
186
- onSubmit?(data: ParamGroupEditorData): Promise<any>;
186
+ onSubmit?(data: ParamGroupEditorData): any;
187
187
  }
188
188
  declare class ParamGroupEditor extends PureComponent<ParamGroupEditorProps> {
189
189
  ref: React.RefObject<any>;
@@ -219,9 +219,12 @@ interface ParamMoverData {
219
219
  parentId: string;
220
220
  }
221
221
  interface ParamMoverProps {
222
+ /**
223
+ * 需要确保 targetParams 的元素之间无父子或者祖先子孙关系
224
+ * */
222
225
  targetParams: string[];
223
226
  allParams: NonNullable<ParentSelectorProps['parentOptions']>;
224
- onSubmit?(params: NonNullable<ParentSelectorProps['parentOptions']>): Promise<any>;
227
+ onSubmit?(params: NonNullable<ParentSelectorProps['parentOptions']>): any;
225
228
  }
226
229
  declare function initState(props: ParamMoverProps): {
227
230
  preProps: ParamMoverProps;
package/lib/es/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
3
  * Generated: 2022-04-08
4
- * Version: 0.1.5
4
+ * Version: 0.1.6
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
8
8
 
9
- import React$1, { PureComponent, useMemo, useState, useEffect } from 'react';
9
+ import React, { PureComponent, useMemo, useState, useEffect } from 'react';
10
10
  import classNames from 'classnames';
11
11
  import dayjs from 'dayjs';
12
12
  import Big from 'big.js';
@@ -463,41 +463,41 @@ var Bool = /*#__PURE__*/function (_PureComponent) {
463
463
  value: false
464
464
  }]);
465
465
 
466
- _defineProperty(_assertThisInitialized(_this), "RadioChecked", /*#__PURE__*/React$1.createElement("svg", {
466
+ _defineProperty(_assertThisInitialized(_this), "RadioChecked", /*#__PURE__*/React.createElement("svg", {
467
467
  width: "16",
468
468
  height: "17",
469
469
  viewBox: "0 0 16 17",
470
470
  fill: "none",
471
471
  xmlns: "http://www.w3.org/2000/svg"
472
- }, /*#__PURE__*/React$1.createElement("g", {
472
+ }, /*#__PURE__*/React.createElement("g", {
473
473
  clipPath: "url(#clip0_0_7934)"
474
- }, /*#__PURE__*/React$1.createElement("circle", {
474
+ }, /*#__PURE__*/React.createElement("circle", {
475
475
  cx: "8",
476
476
  cy: "8.5",
477
477
  r: "7.5",
478
478
  fill: "none",
479
479
  stroke: "currentColor"
480
- }), /*#__PURE__*/React$1.createElement("circle", {
480
+ }), /*#__PURE__*/React.createElement("circle", {
481
481
  cx: "8",
482
482
  cy: "8.5",
483
483
  r: "4",
484
484
  fill: "currentColor"
485
- })), /*#__PURE__*/React$1.createElement("defs", null, /*#__PURE__*/React$1.createElement("clipPath", {
485
+ })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
486
486
  id: "clip0_0_7934"
487
- }, /*#__PURE__*/React$1.createElement("rect", {
487
+ }, /*#__PURE__*/React.createElement("rect", {
488
488
  width: "16",
489
489
  height: "16",
490
490
  fill: "white",
491
491
  transform: "translate(0 0.5)"
492
492
  })))));
493
493
 
494
- _defineProperty(_assertThisInitialized(_this), "RadioUnchecked", /*#__PURE__*/React$1.createElement("svg", {
494
+ _defineProperty(_assertThisInitialized(_this), "RadioUnchecked", /*#__PURE__*/React.createElement("svg", {
495
495
  width: "16",
496
496
  height: "17",
497
497
  viewBox: "0 0 16 17",
498
498
  fill: "none",
499
499
  xmlns: "http://www.w3.org/2000/svg"
500
- }, /*#__PURE__*/React$1.createElement("circle", {
500
+ }, /*#__PURE__*/React.createElement("circle", {
501
501
  cx: "8",
502
502
  cy: "8.5",
503
503
  r: "7.5",
@@ -520,16 +520,16 @@ var Bool = /*#__PURE__*/function (_PureComponent) {
520
520
  value: function render() {
521
521
  var _this2 = this;
522
522
 
523
- return /*#__PURE__*/React$1.createElement("div", {
523
+ return /*#__PURE__*/React.createElement("div", {
524
524
  className: classNames('param-bool', {
525
525
  readonly: this.props.readonly
526
526
  }, this.props.className),
527
527
  style: this.props.style
528
- }, this.props.readonly ? /*#__PURE__*/React$1.createElement("span", {
528
+ }, this.props.readonly ? /*#__PURE__*/React.createElement("span", {
529
529
  className: "param-bool-val"
530
530
  }, !isNullLike(this.props.value) ? String(this.props.value).toUpperCase() : '-') : this.options.map(function (it) {
531
531
  var active = it.value === _this2.props.value;
532
- return /*#__PURE__*/React$1.createElement("div", {
532
+ return /*#__PURE__*/React.createElement("div", {
533
533
  key: String(it.value),
534
534
  className: classNames('param-bool-option', {
535
535
  active: active
@@ -616,21 +616,21 @@ var Num = /*#__PURE__*/function (_PureComponent) {
616
616
  value: function render() {
617
617
  var _this$state$tempValue;
618
618
 
619
- return /*#__PURE__*/React$1.createElement("div", {
619
+ return /*#__PURE__*/React.createElement("div", {
620
620
  className: classNames('param-number', {
621
621
  readonly: this.props.readonly
622
622
  }, this.props.className),
623
623
  style: this.props.style
624
- }, this.props.readonly ? /*#__PURE__*/React$1.createElement("span", {
624
+ }, this.props.readonly ? /*#__PURE__*/React.createElement("span", {
625
625
  className: "param-number-val"
626
- }, (_this$state$tempValue = this.state.tempValue) !== null && _this$state$tempValue !== void 0 ? _this$state$tempValue : '-') : /*#__PURE__*/React$1.createElement("input", {
626
+ }, (_this$state$tempValue = this.state.tempValue) !== null && _this$state$tempValue !== void 0 ? _this$state$tempValue : '-') : /*#__PURE__*/React.createElement("input", {
627
627
  className: "param-number-val",
628
628
  type: "text",
629
629
  placeholder: this.props.placeholder || 'Value',
630
630
  value: this.state.tempValue || '',
631
631
  onChange: this.onChange,
632
632
  onBlur: this.props.onBlur
633
- }), this.props.isPercentage && /*#__PURE__*/React$1.createElement("span", {
633
+ }), this.props.isPercentage && /*#__PURE__*/React.createElement("span", {
634
634
  className: "param-number-suffix"
635
635
  }, "%"));
636
636
  }
@@ -683,25 +683,25 @@ var NumRange = /*#__PURE__*/function (_PureComponent) {
683
683
  value: function render() {
684
684
  var _this$props$value, _this$props$value2;
685
685
 
686
- return /*#__PURE__*/React$1.createElement("div", {
686
+ return /*#__PURE__*/React.createElement("div", {
687
687
  className: classNames('param-number-range', {
688
688
  readonly: this.props.readonly
689
689
  }, this.props.className),
690
690
  style: this.props.style
691
- }, /*#__PURE__*/React$1.createElement("span", {
691
+ }, /*#__PURE__*/React.createElement("span", {
692
692
  className: "param-number-range-prefix"
693
- }, "Min"), /*#__PURE__*/React$1.createElement(Num, {
693
+ }, "Min"), /*#__PURE__*/React.createElement(Num, {
694
694
  placeholder: 'Min',
695
695
  value: (_this$props$value = this.props.value) === null || _this$props$value === void 0 ? void 0 : _this$props$value.min,
696
696
  onChange: this.onChange.bind(null, 'min'),
697
697
  isPercentage: this.props.isPercentage,
698
698
  readonly: this.props.readonly,
699
699
  onBlur: this.props.onBlur
700
- }), /*#__PURE__*/React$1.createElement("span", {
700
+ }), /*#__PURE__*/React.createElement("span", {
701
701
  className: "param-number-range-sep"
702
- }, this.props.readonly ? ',' : '-'), /*#__PURE__*/React$1.createElement("span", {
702
+ }, this.props.readonly ? ',' : '-'), /*#__PURE__*/React.createElement("span", {
703
703
  className: "param-number-range-prefix"
704
- }, "Max"), /*#__PURE__*/React$1.createElement(Num, {
704
+ }, "Max"), /*#__PURE__*/React.createElement(Num, {
705
705
  placeholder: 'Max',
706
706
  value: (_this$props$value2 = this.props.value) === null || _this$props$value2 === void 0 ? void 0 : _this$props$value2.max,
707
707
  onChange: this.onChange.bind(null, 'max'),
@@ -788,29 +788,29 @@ var TextArray = /*#__PURE__*/function (_PureComponent) {
788
788
 
789
789
  this.value = this.props.value || [];
790
790
  if (!this.value.length) this.value.push('');
791
- return /*#__PURE__*/React$1.createElement("div", {
791
+ return /*#__PURE__*/React.createElement("div", {
792
792
  className: classNames('param-text-array', {
793
793
  readonly: this.props.readonly
794
794
  }, this.props.className),
795
795
  style: this.props.style
796
- }, this.props.readonly ? /*#__PURE__*/React$1.createElement("span", {
796
+ }, this.props.readonly ? /*#__PURE__*/React.createElement("span", {
797
797
  className: "param-text-array-val"
798
798
  }, this.value.filter(Boolean).join(', ') || '-') : this.value.map(function (it, i) {
799
- return /*#__PURE__*/React$1.createElement("div", {
799
+ return /*#__PURE__*/React.createElement("div", {
800
800
  className: "param-arr-item",
801
801
  key: i
802
- }, /*#__PURE__*/React$1.createElement("input", {
802
+ }, /*#__PURE__*/React.createElement("input", {
803
803
  type: "text",
804
804
  placeholder: "Phone",
805
805
  value: it,
806
806
  onChange: _this2.onChange.bind(null, i),
807
807
  onBlur: _this2.props.onBlur
808
- }), /*#__PURE__*/React$1.createElement("div", {
808
+ }), /*#__PURE__*/React.createElement("div", {
809
809
  className: "param-arr-ops"
810
- }, /*#__PURE__*/React$1.createElement(PlusOutlined, {
810
+ }, /*#__PURE__*/React.createElement(PlusOutlined, {
811
811
  className: "param-arr-ops-add",
812
812
  onClick: _this2.onAdd.bind(null, i)
813
- }), /*#__PURE__*/React$1.createElement(DeleteOutlined, {
813
+ }), /*#__PURE__*/React.createElement(DeleteOutlined, {
814
814
  className: "param-arr-ops-del",
815
815
  onClick: _this2.onDel.bind(null, i)
816
816
  })));
@@ -880,12 +880,12 @@ var Expiries = /*#__PURE__*/function (_PureComponent) {
880
880
  });
881
881
 
882
882
  if (this.props.readonly) {
883
- return /*#__PURE__*/React$1.createElement("span", {
883
+ return /*#__PURE__*/React.createElement("span", {
884
884
  className: "param-expiries-val"
885
885
  }, (value === null || value === void 0 ? void 0 : value.join(', ')) || '-');
886
886
  }
887
887
 
888
- var placeholder = /*#__PURE__*/React$1.createElement("span", {
888
+ var placeholder = /*#__PURE__*/React.createElement("span", {
889
889
  className: "param-expiries-placeholder"
890
890
  }, "Choose an expiry");
891
891
 
@@ -894,20 +894,20 @@ var Expiries = /*#__PURE__*/function (_PureComponent) {
894
894
 
895
895
  var _val = (_this$props$value2 = this.props.value) === null || _this$props$value2 === void 0 ? void 0 : _this$props$value2[0];
896
896
 
897
- return !_val || isExpired(_val) ? placeholder : /*#__PURE__*/React$1.createElement("span", {
897
+ return !_val || isExpired(_val) ? placeholder : /*#__PURE__*/React.createElement("span", {
898
898
  className: "param-expiries-val"
899
899
  }, _val);
900
900
  }
901
901
 
902
902
  if (!(value === null || value === void 0 ? void 0 : value.length)) return placeholder;
903
903
  return value.map(function (it) {
904
- return /*#__PURE__*/React$1.createElement("span", {
904
+ return /*#__PURE__*/React.createElement("span", {
905
905
  className: "param-expiries-multi-val",
906
906
  key: it,
907
907
  onClick: function onClick(e) {
908
908
  return e.stopPropagation();
909
909
  }
910
- }, it, /*#__PURE__*/React$1.createElement(CloseOutlined, {
910
+ }, it, /*#__PURE__*/React.createElement(CloseOutlined, {
911
911
  onClick: _this2.onChange.bind(null, it)
912
912
  }));
913
913
  });
@@ -918,7 +918,7 @@ var Expiries = /*#__PURE__*/function (_PureComponent) {
918
918
  var _this$props$options,
919
919
  _this3 = this;
920
920
 
921
- return /*#__PURE__*/React$1.createElement(Popover, {
921
+ return /*#__PURE__*/React.createElement(Popover, {
922
922
  overlayClassName: "param-expiries-popover",
923
923
  trigger: 'click',
924
924
  placement: 'bottomLeft',
@@ -929,22 +929,22 @@ var Expiries = /*#__PURE__*/function (_PureComponent) {
929
929
 
930
930
  var checked = (_this3$props$value = _this3.props.value) === null || _this3$props$value === void 0 ? void 0 : _this3$props$value.includes(it);
931
931
  var disabled = (_this3$props$calcDisa = (_this3$props = _this3.props).calcDisabled) === null || _this3$props$calcDisa === void 0 ? void 0 : _this3$props$calcDisa.call(_this3$props, it);
932
- return /*#__PURE__*/React$1.createElement("div", {
932
+ return /*#__PURE__*/React.createElement("div", {
933
933
  className: classNames('param-expiries-option', {
934
934
  'param-expiries-option-checked': checked,
935
935
  'param-expiries-option-disabled': disabled
936
936
  }),
937
937
  key: it,
938
938
  onClick: disabled ? undefined : (_this3$onChange = _this3.onChange) === null || _this3$onChange === void 0 ? void 0 : _this3$onChange.bind(null, it)
939
- }, it, checked && /*#__PURE__*/React$1.createElement(CheckOutlined, null));
939
+ }, it, checked && /*#__PURE__*/React.createElement(CheckOutlined, null));
940
940
  })
941
- }, /*#__PURE__*/React$1.createElement("div", {
941
+ }, /*#__PURE__*/React.createElement("div", {
942
942
  className: classNames('param-expiries', {
943
943
  readonly: this.props.readonly,
944
944
  multiple: this.props.multiple !== false
945
945
  }, this.props.className),
946
946
  style: this.props.style
947
- }, this.renderValue(), !this.props.readonly && this.props.options && /*#__PURE__*/React$1.createElement(DownOutlined, {
947
+ }, this.renderValue(), !this.props.readonly && this.props.options && /*#__PURE__*/React.createElement(DownOutlined, {
948
948
  className: "param-expiries-arrow"
949
949
  })));
950
950
  }
@@ -1021,7 +1021,7 @@ var ExpiriesLimit = /*#__PURE__*/function (_PureComponent) {
1021
1021
  if (!this.value.length) this.value.push({
1022
1022
  expiry: ''
1023
1023
  });
1024
- return /*#__PURE__*/React$1.createElement("div", {
1024
+ return /*#__PURE__*/React.createElement("div", {
1025
1025
  className: classNames('param-expiries-limit', {
1026
1026
  readonly: this.props.readonly
1027
1027
  }, this.props.className),
@@ -1029,30 +1029,30 @@ var ExpiriesLimit = /*#__PURE__*/function (_PureComponent) {
1029
1029
  }, this.props.readonly ? ((_this$props$value2 = this.props.value) === null || _this$props$value2 === void 0 ? void 0 : _this$props$value2.length) ? this.value.filter(function (it) {
1030
1030
  return it.expiry;
1031
1031
  }).map(function (it, i) {
1032
- return /*#__PURE__*/React$1.createElement("span", {
1032
+ return /*#__PURE__*/React.createElement("span", {
1033
1033
  className: "param-expiries-limit-val",
1034
1034
  key: i
1035
- }, it.expiry, /*#__PURE__*/React$1.createElement("span", {
1035
+ }, it.expiry, /*#__PURE__*/React.createElement("span", {
1036
1036
  className: "param-expiries-limit-val-sep"
1037
- }, "/"), it.minAumPercentage && it.maxAumPercentage ? "(".concat(NumCvt.show(it.minAumPercentage, true), "%, ").concat(NumCvt.show(it.maxAumPercentage, true), "%)") : '-', /*#__PURE__*/React$1.createElement("span", {
1037
+ }, "/"), it.minAumPercentage && it.maxAumPercentage ? "(".concat(NumCvt.show(it.minAumPercentage, true), "%, ").concat(NumCvt.show(it.maxAumPercentage, true), "%)") : '-', /*#__PURE__*/React.createElement("span", {
1038
1038
  className: "param-expiries-limit-val-sep"
1039
1039
  }, "/"), it.minAbs && it.maxAbs ? "(".concat(it.minAbs, ", ").concat(it.maxAbs, ")") : '-');
1040
- }) : '-' : /*#__PURE__*/React$1.createElement("div", {
1040
+ }) : '-' : /*#__PURE__*/React.createElement("div", {
1041
1041
  className: "param-expiries-limit-inputs"
1042
- }, /*#__PURE__*/React$1.createElement("div", {
1042
+ }, /*#__PURE__*/React.createElement("div", {
1043
1043
  className: "param-expiries readonly"
1044
- }, /*#__PURE__*/React$1.createElement("span", {
1044
+ }, /*#__PURE__*/React.createElement("span", {
1045
1045
  className: "param-expiries-val"
1046
- }, "Expiry")), /*#__PURE__*/React$1.createElement("div", {
1046
+ }, "Expiry")), /*#__PURE__*/React.createElement("div", {
1047
1047
  className: "param-number-range readonly"
1048
- }, "Limit(% of AUM)"), /*#__PURE__*/React$1.createElement("div", {
1048
+ }, "Limit(% of AUM)"), /*#__PURE__*/React.createElement("div", {
1049
1049
  className: "param-number-range readonly"
1050
- }, "Limit(ABS)"), /*#__PURE__*/React$1.createElement("div", {
1050
+ }, "Limit(ABS)"), /*#__PURE__*/React.createElement("div", {
1051
1051
  className: "param-arr-ops readonly"
1052
1052
  }), this.value.map(function (it, i) {
1053
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, {
1053
+ return /*#__PURE__*/React.createElement(React.Fragment, {
1054
1054
  key: i
1055
- }, /*#__PURE__*/React$1.createElement(Expiries, {
1055
+ }, /*#__PURE__*/React.createElement(Expiries, {
1056
1056
  multiple: false,
1057
1057
  options: _this2.props.options,
1058
1058
  value: [it.expiry],
@@ -1065,7 +1065,7 @@ var ExpiriesLimit = /*#__PURE__*/function (_PureComponent) {
1065
1065
  });
1066
1066
  },
1067
1067
  onBlur: _this2.props.onBlur
1068
- }), /*#__PURE__*/React$1.createElement(NumRange, {
1068
+ }), /*#__PURE__*/React.createElement(NumRange, {
1069
1069
  value: {
1070
1070
  min: it.minAumPercentage,
1071
1071
  max: it.maxAumPercentage
@@ -1078,7 +1078,7 @@ var ExpiriesLimit = /*#__PURE__*/function (_PureComponent) {
1078
1078
  },
1079
1079
  isPercentage: true,
1080
1080
  onBlur: _this2.props.onBlur
1081
- }), /*#__PURE__*/React$1.createElement(NumRange, {
1081
+ }), /*#__PURE__*/React.createElement(NumRange, {
1082
1082
  value: {
1083
1083
  min: it.minAbs,
1084
1084
  max: it.maxAbs
@@ -1090,12 +1090,12 @@ var ExpiriesLimit = /*#__PURE__*/function (_PureComponent) {
1090
1090
  });
1091
1091
  },
1092
1092
  onBlur: _this2.props.onBlur
1093
- }), /*#__PURE__*/React$1.createElement("div", {
1093
+ }), /*#__PURE__*/React.createElement("div", {
1094
1094
  className: "param-arr-ops"
1095
- }, /*#__PURE__*/React$1.createElement(PlusOutlined, {
1095
+ }, /*#__PURE__*/React.createElement(PlusOutlined, {
1096
1096
  className: "param-arr-ops-add",
1097
1097
  onClick: _this2.onAdd.bind(null, i)
1098
- }), /*#__PURE__*/React$1.createElement(DeleteOutlined, {
1098
+ }), /*#__PURE__*/React.createElement(DeleteOutlined, {
1099
1099
  className: "param-arr-ops-del",
1100
1100
  onClick: _this2.onDel.bind(null, i)
1101
1101
  })));
@@ -1110,7 +1110,7 @@ var _ParamTypeConfig;
1110
1110
  var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig, ParamType.ParamGroup, {
1111
1111
  name: '参数组',
1112
1112
  Comp: function Comp() {
1113
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
1113
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
1114
1114
  }
1115
1115
  }), _defineProperty(_ParamTypeConfig, ParamType.Number, {
1116
1116
  name: '普通数值',
@@ -1121,7 +1121,7 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
1121
1121
  name: '百分比数值',
1122
1122
  key: 'number',
1123
1123
  Comp: function Comp(props) {
1124
- return /*#__PURE__*/React$1.createElement(Num, Object.assign({}, props, {
1124
+ return /*#__PURE__*/React.createElement(Num, Object.assign({}, props, {
1125
1125
  isPercentage: true
1126
1126
  }));
1127
1127
  },
@@ -1140,7 +1140,7 @@ var ParamTypeConfig = (_ParamTypeConfig = {}, _defineProperty(_ParamTypeConfig,
1140
1140
  name: '百分比范围',
1141
1141
  key: 'range',
1142
1142
  Comp: function Comp(props) {
1143
- return /*#__PURE__*/React$1.createElement(NumRange, Object.assign({}, props, {
1143
+ return /*#__PURE__*/React.createElement(NumRange, Object.assign({}, props, {
1144
1144
  isPercentage: true
1145
1145
  }));
1146
1146
  },
@@ -1251,7 +1251,7 @@ var ParamRenderer = /*#__PURE__*/function (_PureComponent) {
1251
1251
  key: "render",
1252
1252
  value: function render() {
1253
1253
  var Comp = this.typeConfig.Comp;
1254
- return /*#__PURE__*/React$1.createElement(Comp, Object.assign({}, this.props, {
1254
+ return /*#__PURE__*/React.createElement(Comp, Object.assign({}, this.props, {
1255
1255
  options: this.props.expiriesOptions,
1256
1256
  value: this.value,
1257
1257
  onChange: this.onChange,
@@ -1308,7 +1308,7 @@ function ParentSelector(props) {
1308
1308
  value = _useMemo.value,
1309
1309
  options = _useMemo.options;
1310
1310
 
1311
- return /*#__PURE__*/React$1.createElement(Cascader, {
1311
+ return /*#__PURE__*/React.createElement(Cascader, {
1312
1312
  style: props.style,
1313
1313
  disabled: props.readonly,
1314
1314
  placeholder: '请选择',
@@ -1341,7 +1341,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1341
1341
 
1342
1342
  _this = _super.call.apply(_super, [this].concat(args));
1343
1343
 
1344
- _defineProperty(_assertThisInitialized(_this), "ref", React$1.createRef());
1344
+ _defineProperty(_assertThisInitialized(_this), "ref", React.createRef());
1345
1345
 
1346
1346
  _defineProperty(_assertThisInitialized(_this), "onChange", function (changed, data) {
1347
1347
  var _this$props$onChange, _this$props;
@@ -1362,7 +1362,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1362
1362
  label: '所属分组',
1363
1363
  name: 'parentId',
1364
1364
  Comp: function Comp(props) {
1365
- return /*#__PURE__*/React$1.createElement(ParentSelector, Object.assign({}, props, {
1365
+ return /*#__PURE__*/React.createElement(ParentSelector, Object.assign({}, props, {
1366
1366
  parentOptions: _this2.props.parentOptions
1367
1367
  }));
1368
1368
  },
@@ -1374,7 +1374,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1374
1374
  label: '参数 Key',
1375
1375
  name: 'key',
1376
1376
  Comp: function Comp(props) {
1377
- return /*#__PURE__*/React$1.createElement(Input, Object.assign({
1377
+ return /*#__PURE__*/React.createElement(Input, Object.assign({
1378
1378
  placeholder: '请输入'
1379
1379
  }, props));
1380
1380
  },
@@ -1384,7 +1384,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1384
1384
  label: '参数名称',
1385
1385
  name: 'name',
1386
1386
  Comp: function Comp(props) {
1387
- return /*#__PURE__*/React$1.createElement(Input, Object.assign({
1387
+ return /*#__PURE__*/React.createElement(Input, Object.assign({
1388
1388
  placeholder: '请输入'
1389
1389
  }, props));
1390
1390
  }
@@ -1392,10 +1392,10 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1392
1392
  label: '参数类型',
1393
1393
  name: 'valueType',
1394
1394
  Comp: function Comp(props) {
1395
- return /*#__PURE__*/React$1.createElement(Select, Object.assign({
1395
+ return /*#__PURE__*/React.createElement(Select, Object.assign({
1396
1396
  placeholder: '请选择'
1397
1397
  }, props), ParamTypeOptions.map(function (it) {
1398
- return /*#__PURE__*/React$1.createElement(Select.Option, {
1398
+ return /*#__PURE__*/React.createElement(Select.Option, {
1399
1399
  key: it.value,
1400
1400
  value: it.value
1401
1401
  }, it.label);
@@ -1411,7 +1411,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1411
1411
  Comp: function Comp(props) {
1412
1412
  var _this2$ref$current;
1413
1413
 
1414
- return /*#__PURE__*/React$1.createElement(ParamRenderer, Object.assign({}, props, {
1414
+ return /*#__PURE__*/React.createElement(ParamRenderer, Object.assign({}, props, {
1415
1415
  expiriesOptions: _this2.props.expiriesOptions,
1416
1416
  valueType: (_this2$ref$current = _this2.ref.current) === null || _this2$ref$current === void 0 ? void 0 : _this2$ref$current.getFieldValue('valueType')
1417
1417
  }));
@@ -1423,7 +1423,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1423
1423
  label: '参数说明',
1424
1424
  name: 'description',
1425
1425
  Comp: function Comp(props) {
1426
- return /*#__PURE__*/React$1.createElement(Input.TextArea, Object.assign({
1426
+ return /*#__PURE__*/React.createElement(Input.TextArea, Object.assign({
1427
1427
  placeholder: '请输入'
1428
1428
  }, props));
1429
1429
  }
@@ -1432,7 +1432,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1432
1432
  }, {
1433
1433
  key: "render",
1434
1434
  value: function render() {
1435
- return /*#__PURE__*/React$1.createElement(Form, {
1435
+ return /*#__PURE__*/React.createElement(Form, {
1436
1436
  className: "param-form",
1437
1437
  ref: this.ref,
1438
1438
  key: JSON.stringify(this.props.initialValues),
@@ -1440,7 +1440,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1440
1440
  onFinish: this.props.onSubmit,
1441
1441
  onValuesChange: this.onChange
1442
1442
  }, this.formItems.map(function (it) {
1443
- return /*#__PURE__*/React$1.createElement(Form.Item, {
1443
+ return /*#__PURE__*/React.createElement(Form.Item, {
1444
1444
  key: it.name,
1445
1445
  label: it.label,
1446
1446
  name: it.name,
@@ -1452,8 +1452,8 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1452
1452
  }
1453
1453
  }],
1454
1454
  validateTrigger: 'onBlur'
1455
- }, /*#__PURE__*/React$1.createElement(it.Comp, null));
1456
- }), this.props.onSubmit && /*#__PURE__*/React$1.createElement(Button, {
1455
+ }, /*#__PURE__*/React.createElement(it.Comp, null));
1456
+ }), this.props.onSubmit && /*#__PURE__*/React.createElement(Button, {
1457
1457
  type: "primary",
1458
1458
  htmlType: "submit"
1459
1459
  }, "\u63D0\u4EA4"));
@@ -1479,7 +1479,7 @@ var ParamFormModalEl = /*#__PURE__*/function (_PureComponent2) {
1479
1479
 
1480
1480
  _this3 = _super2.call.apply(_super2, [this].concat(args));
1481
1481
 
1482
- _defineProperty(_assertThisInitialized(_this3), "ref", React$1.createRef());
1482
+ _defineProperty(_assertThisInitialized(_this3), "ref", React.createRef());
1483
1483
 
1484
1484
  _defineProperty(_assertThisInitialized(_this3), "state", {
1485
1485
  visible: false,
@@ -1533,20 +1533,20 @@ var ParamFormModalEl = /*#__PURE__*/function (_PureComponent2) {
1533
1533
  }, {
1534
1534
  key: "render",
1535
1535
  value: function render() {
1536
- return /*#__PURE__*/React$1.createElement(Modal, {
1536
+ return /*#__PURE__*/React.createElement(Modal, {
1537
1537
  key: String(this.state.visible),
1538
1538
  width: 640,
1539
1539
  closable: false,
1540
1540
  title: !this.isEdit ? '新增参数' : '修改参数',
1541
1541
  visible: this.state.visible,
1542
- footer: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Button, {
1542
+ footer: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
1543
1543
  onClick: this.onHide
1544
- }, "\u53D6\u6D88"), /*#__PURE__*/React$1.createElement(Button, {
1544
+ }, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
1545
1545
  type: "primary",
1546
1546
  onClick: this.onSubmit,
1547
1547
  loading: this.state.pending
1548
1548
  }, "\u786E\u8BA4"))
1549
- }, /*#__PURE__*/React$1.createElement(ParamForm, Object.assign({}, this.props, {
1549
+ }, /*#__PURE__*/React.createElement(ParamForm, Object.assign({}, this.props, {
1550
1550
  ref: this.ref,
1551
1551
  onSubmit: undefined
1552
1552
  })));
@@ -1598,7 +1598,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1598
1598
 
1599
1599
  _this = _super.call.apply(_super, [this].concat(args));
1600
1600
 
1601
- _defineProperty(_assertThisInitialized(_this), "ref", React$1.createRef());
1601
+ _defineProperty(_assertThisInitialized(_this), "ref", React.createRef());
1602
1602
 
1603
1603
  _defineProperty(_assertThisInitialized(_this), "onChange", function (changed, data) {
1604
1604
  var _this$props$onChange, _this$props;
@@ -1618,7 +1618,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1618
1618
  label: 'Parameter',
1619
1619
  name: 'paramId',
1620
1620
  Comp: function Comp(props) {
1621
- return /*#__PURE__*/React$1.createElement(ParentSelector, Object.assign({}, props, {
1621
+ return /*#__PURE__*/React.createElement(ParentSelector, Object.assign({}, props, {
1622
1622
  readonly: true
1623
1623
  }));
1624
1624
  }
@@ -1626,7 +1626,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1626
1626
  label: 'Description',
1627
1627
  name: 'description',
1628
1628
  Comp: function Comp(props) {
1629
- return /*#__PURE__*/React$1.createElement("span", {
1629
+ return /*#__PURE__*/React.createElement("span", {
1630
1630
  className: "param-value-editor-desc",
1631
1631
  style: {
1632
1632
  lineHeight: '20px',
@@ -1638,7 +1638,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1638
1638
  label: 'Value before',
1639
1639
  name: 'valueBefore',
1640
1640
  Comp: function Comp(props) {
1641
- return /*#__PURE__*/React$1.createElement(ParamRenderer, Object.assign({}, props, {
1641
+ return /*#__PURE__*/React.createElement(ParamRenderer, Object.assign({}, props, {
1642
1642
  readonly: true,
1643
1643
  parentOptions: _this2.props.allParams
1644
1644
  }));
@@ -1647,7 +1647,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1647
1647
  label: 'Value after',
1648
1648
  name: 'value',
1649
1649
  Comp: function Comp(props) {
1650
- return /*#__PURE__*/React$1.createElement(ParamRenderer, Object.assign({}, props, {
1650
+ return /*#__PURE__*/React.createElement(ParamRenderer, Object.assign({}, props, {
1651
1651
  expiriesOptions: _this2.props.expiriesOptions,
1652
1652
  valueType: _this2.props.valueType
1653
1653
  }));
@@ -1663,7 +1663,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1663
1663
  }, {
1664
1664
  key: "render",
1665
1665
  value: function render() {
1666
- return /*#__PURE__*/React$1.createElement(Form, {
1666
+ return /*#__PURE__*/React.createElement(Form, {
1667
1667
  className: "param-value-editor",
1668
1668
  ref: this.ref,
1669
1669
  key: this.props.valueType,
@@ -1671,7 +1671,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1671
1671
  onFinish: this.props.onSubmit,
1672
1672
  onValuesChange: this.onChange
1673
1673
  }, this.formItems.map(function (it) {
1674
- return /*#__PURE__*/React$1.createElement(Form.Item, {
1674
+ return /*#__PURE__*/React.createElement(Form.Item, {
1675
1675
  key: it.name,
1676
1676
  label: it.label,
1677
1677
  name: it.name,
@@ -1683,8 +1683,8 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1683
1683
  }
1684
1684
  }],
1685
1685
  validateTrigger: 'onBlur'
1686
- }, /*#__PURE__*/React$1.createElement(it.Comp, null));
1687
- }), this.props.onSubmit && /*#__PURE__*/React$1.createElement(Button, {
1686
+ }, /*#__PURE__*/React.createElement(it.Comp, null));
1687
+ }), this.props.onSubmit && /*#__PURE__*/React.createElement(Button, {
1688
1688
  type: "primary",
1689
1689
  htmlType: "submit"
1690
1690
  }, "\u63D0\u4EA4"));
@@ -1709,7 +1709,7 @@ var ParamValueEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
1709
1709
 
1710
1710
  _this3 = _super2.call.apply(_super2, [this].concat(args));
1711
1711
 
1712
- _defineProperty(_assertThisInitialized(_this3), "ref", React$1.createRef());
1712
+ _defineProperty(_assertThisInitialized(_this3), "ref", React.createRef());
1713
1713
 
1714
1714
  _defineProperty(_assertThisInitialized(_this3), "state", {
1715
1715
  visible: false,
@@ -1756,20 +1756,20 @@ var ParamValueEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
1756
1756
  _createClass(ParamValueEditorModalEl, [{
1757
1757
  key: "render",
1758
1758
  value: function render() {
1759
- return /*#__PURE__*/React$1.createElement(Modal, {
1759
+ return /*#__PURE__*/React.createElement(Modal, {
1760
1760
  key: String(this.state.visible),
1761
1761
  width: 640,
1762
1762
  title: 'Edit Value',
1763
1763
  closable: false,
1764
1764
  visible: this.state.visible,
1765
- footer: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Button, {
1765
+ footer: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
1766
1766
  onClick: this.onHide
1767
- }, "Cancel"), /*#__PURE__*/React$1.createElement(Button, {
1767
+ }, "Cancel"), /*#__PURE__*/React.createElement(Button, {
1768
1768
  type: "primary",
1769
1769
  onClick: this.onSubmit,
1770
1770
  loading: this.state.pending
1771
1771
  }, "Submit"))
1772
- }, /*#__PURE__*/React$1.createElement(ParamValueEditor, Object.assign({}, this.props, {
1772
+ }, /*#__PURE__*/React.createElement(ParamValueEditor, Object.assign({}, this.props, {
1773
1773
  ref: this.ref,
1774
1774
  onSubmit: undefined
1775
1775
  })));
@@ -1870,7 +1870,7 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1870
1870
 
1871
1871
  _this = _super.call.apply(_super, [this].concat(args));
1872
1872
 
1873
- _defineProperty(_assertThisInitialized(_this), "ref", React$1.createRef());
1873
+ _defineProperty(_assertThisInitialized(_this), "ref", React.createRef());
1874
1874
 
1875
1875
  _defineProperty(_assertThisInitialized(_this), "onChange", function (changed, data) {
1876
1876
  var _this$props$onChange, _this$props;
@@ -1892,7 +1892,7 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1892
1892
  label: '参数组名称',
1893
1893
  name: 'name',
1894
1894
  Comp: function Comp(props) {
1895
- return /*#__PURE__*/React$1.createElement(Input, Object.assign({}, props, {
1895
+ return /*#__PURE__*/React.createElement(Input, Object.assign({}, props, {
1896
1896
  placeholder: '请输入'
1897
1897
  }));
1898
1898
  },
@@ -1903,7 +1903,7 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1903
1903
  label: '业务流程图',
1904
1904
  name: 'descriptionUrl',
1905
1905
  Comp: function Comp(props) {
1906
- return /*#__PURE__*/React$1.createElement(ImageUpload, Object.assign({}, props, {
1906
+ return /*#__PURE__*/React.createElement(ImageUpload, Object.assign({}, props, {
1907
1907
  getSignedUrl: _this2.props.getSignedUrl,
1908
1908
  handleUpload: _this2.props.handleUpload
1909
1909
  }));
@@ -1918,7 +1918,7 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1918
1918
  label: '父级参数组',
1919
1919
  name: 'parentId',
1920
1920
  Comp: function Comp(props) {
1921
- return /*#__PURE__*/React$1.createElement(ParentSelector, Object.assign({}, props, {
1921
+ return /*#__PURE__*/React.createElement(ParentSelector, Object.assign({}, props, {
1922
1922
  parentOptions: _this2.props.allParams
1923
1923
  }));
1924
1924
  }
@@ -1930,14 +1930,14 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1930
1930
  }, {
1931
1931
  key: "render",
1932
1932
  value: function render() {
1933
- return /*#__PURE__*/React$1.createElement(Form, {
1933
+ return /*#__PURE__*/React.createElement(Form, {
1934
1934
  className: "param-value-editor",
1935
1935
  ref: this.ref,
1936
1936
  initialValues: this.props.initialValues,
1937
1937
  onFinish: this.props.onSubmit,
1938
1938
  onValuesChange: this.onChange
1939
1939
  }, this.formItems.map(function (it) {
1940
- return /*#__PURE__*/React$1.createElement(Form.Item, {
1940
+ return /*#__PURE__*/React.createElement(Form.Item, {
1941
1941
  key: it.name,
1942
1942
  label: it.label,
1943
1943
  name: it.name,
@@ -1949,8 +1949,8 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1949
1949
  }
1950
1950
  }],
1951
1951
  validateTrigger: 'onBlur'
1952
- }, /*#__PURE__*/React$1.createElement(it.Comp, null));
1953
- }), this.props.onSubmit && /*#__PURE__*/React$1.createElement(Button, {
1952
+ }, /*#__PURE__*/React.createElement(it.Comp, null));
1953
+ }), this.props.onSubmit && /*#__PURE__*/React.createElement(Button, {
1954
1954
  type: "primary",
1955
1955
  htmlType: "submit"
1956
1956
  }, "\u63D0\u4EA4"));
@@ -1975,7 +1975,7 @@ var ParamGroupEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
1975
1975
 
1976
1976
  _this3 = _super2.call.apply(_super2, [this].concat(args));
1977
1977
 
1978
- _defineProperty(_assertThisInitialized(_this3), "ref", React$1.createRef());
1978
+ _defineProperty(_assertThisInitialized(_this3), "ref", React.createRef());
1979
1979
 
1980
1980
  _defineProperty(_assertThisInitialized(_this3), "state", {
1981
1981
  visible: false,
@@ -2031,20 +2031,20 @@ var ParamGroupEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
2031
2031
  value: function render() {
2032
2032
  var _this$props$initialVa3;
2033
2033
 
2034
- return /*#__PURE__*/React$1.createElement(Modal, {
2034
+ return /*#__PURE__*/React.createElement(Modal, {
2035
2035
  key: String(this.state.visible),
2036
2036
  width: 640,
2037
2037
  title: ((_this$props$initialVa3 = this.props.initialValues) === null || _this$props$initialVa3 === void 0 ? void 0 : _this$props$initialVa3.paramId) ? '编辑参数组' : '新增参数组',
2038
2038
  closable: false,
2039
2039
  visible: this.state.visible,
2040
- footer: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Button, {
2040
+ footer: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
2041
2041
  onClick: this.onHide
2042
- }, "\u53D6\u6D88"), /*#__PURE__*/React$1.createElement(Button, {
2042
+ }, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
2043
2043
  type: "primary",
2044
2044
  onClick: this.onSubmit,
2045
2045
  loading: this.state.pending
2046
2046
  }, "\u786E\u5B9A"))
2047
- }, /*#__PURE__*/React$1.createElement(ParamGroupEditor, Object.assign({}, this.props, {
2047
+ }, /*#__PURE__*/React.createElement(ParamGroupEditor, Object.assign({}, this.props, {
2048
2048
  ref: this.ref,
2049
2049
  onSubmit: undefined
2050
2050
  })));
@@ -2138,7 +2138,7 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2138
2138
 
2139
2139
  _defineProperty(_assertThisInitialized(_this), "state", initState(_this.props));
2140
2140
 
2141
- _defineProperty(_assertThisInitialized(_this), "ref", React$1.createRef());
2141
+ _defineProperty(_assertThisInitialized(_this), "ref", React.createRef());
2142
2142
 
2143
2143
  return _this;
2144
2144
  }
@@ -2161,7 +2161,9 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2161
2161
  if (it.$paramId === parentId) {
2162
2162
  return _objectSpread2(_objectSpread2({}, it), {}, {
2163
2163
  children: (it.children || []).concat(_this2.props.targetParams.map(function ($paramId) {
2164
- return _this2.state.paramsMap[$paramId];
2164
+ return _objectSpread2(_objectSpread2({}, _this2.state.paramsMap[$paramId]), {}, {
2165
+ parentId: it.$paramId
2166
+ });
2165
2167
  }))
2166
2168
  });
2167
2169
  }
@@ -2182,7 +2184,7 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2182
2184
  label: '选择分组',
2183
2185
  name: 'parentId',
2184
2186
  Comp: function Comp(props) {
2185
- return /*#__PURE__*/React$1.createElement(ParentSelector, Object.assign({}, props, {
2187
+ return /*#__PURE__*/React.createElement(ParentSelector, Object.assign({}, props, {
2186
2188
  parentOptions: _this3.state.options
2187
2189
  }));
2188
2190
  }
@@ -2192,12 +2194,12 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2192
2194
  }, {
2193
2195
  key: "render",
2194
2196
  value: function render() {
2195
- return /*#__PURE__*/React$1.createElement(Form, {
2197
+ return /*#__PURE__*/React.createElement(Form, {
2196
2198
  className: "param-value-editor",
2197
2199
  ref: this.ref,
2198
2200
  onFinish: this.props.onSubmit
2199
2201
  }, this.formItems.map(function (it) {
2200
- return /*#__PURE__*/React$1.createElement(Form.Item, {
2202
+ return /*#__PURE__*/React.createElement(Form.Item, {
2201
2203
  key: it.name,
2202
2204
  label: it.label,
2203
2205
  name: it.name,
@@ -2209,8 +2211,8 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2209
2211
  }
2210
2212
  }],
2211
2213
  validateTrigger: 'onBlur'
2212
- }, /*#__PURE__*/React$1.createElement(it.Comp, null));
2213
- }), this.props.onSubmit && /*#__PURE__*/React$1.createElement(Button, {
2214
+ }, /*#__PURE__*/React.createElement(it.Comp, null));
2215
+ }), this.props.onSubmit && /*#__PURE__*/React.createElement(Button, {
2214
2216
  type: "primary",
2215
2217
  htmlType: "submit"
2216
2218
  }, "\u63D0\u4EA4"));
@@ -2250,7 +2252,7 @@ var ParamMoverModalEl = /*#__PURE__*/function (_PureComponent2) {
2250
2252
 
2251
2253
  _this4 = _super2.call.apply(_super2, [this].concat(args));
2252
2254
 
2253
- _defineProperty(_assertThisInitialized(_this4), "ref", React$1.createRef());
2255
+ _defineProperty(_assertThisInitialized(_this4), "ref", React.createRef());
2254
2256
 
2255
2257
  _defineProperty(_assertThisInitialized(_this4), "state", {
2256
2258
  visible: false,
@@ -2290,20 +2292,20 @@ var ParamMoverModalEl = /*#__PURE__*/function (_PureComponent2) {
2290
2292
  _createClass(ParamMoverModalEl, [{
2291
2293
  key: "render",
2292
2294
  value: function render() {
2293
- return /*#__PURE__*/React$1.createElement(Modal, {
2295
+ return /*#__PURE__*/React.createElement(Modal, {
2294
2296
  key: String(this.state.visible),
2295
2297
  width: 640,
2296
2298
  title: '移动参数',
2297
2299
  closable: false,
2298
2300
  visible: this.state.visible,
2299
- footer: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Button, {
2301
+ footer: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
2300
2302
  onClick: this.onHide
2301
- }, "\u53D6\u6D88"), /*#__PURE__*/React$1.createElement(Button, {
2303
+ }, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
2302
2304
  type: "primary",
2303
2305
  onClick: this.onSubmit,
2304
2306
  loading: this.state.pending
2305
2307
  }, "\u786E\u5B9A"))
2306
- }, /*#__PURE__*/React$1.createElement(ParamMover, Object.assign({}, this.props, {
2308
+ }, /*#__PURE__*/React.createElement(ParamMover, Object.assign({}, this.props, {
2307
2309
  ref: this.ref,
2308
2310
  onSubmit: undefined
2309
2311
  })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",