@signalplus/params-about 0.1.5 → 0.1.8

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 +11 -8
  2. package/lib/es/index.js +125 -122
  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>;
@@ -180,10 +180,10 @@ interface ParamGroupEditorProps extends Required<Pick<ImageUploadProps, 'getSign
180
180
  /**
181
181
  * 传了表示为有父级
182
182
  * */
183
- allParams?: ParentSelectorProps['parentOptions'];
184
- initialValues?: ParamGroupEditorData;
183
+ parentOptions?: ParentSelectorProps['parentOptions'];
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;
@@ -279,7 +282,7 @@ declare function paramValidator(val: any, values: {
279
282
  valueType: ParamType;
280
283
  }): string;
281
284
  declare const ParamTypeOptions: {
282
- value: string;
285
+ value: number;
283
286
  label: string;
284
287
  name: string;
285
288
  key?: string | undefined;
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.8
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
  },
@@ -1204,7 +1204,7 @@ var ParamTypeOptions = Object.entries(ParamTypeConfig).map(function (_ref) {
1204
1204
  config = _ref2[1];
1205
1205
 
1206
1206
  return _objectSpread2(_objectSpread2({}, config), {}, {
1207
- value: value,
1207
+ value: Number(value),
1208
1208
  label: config.name
1209
1209
  });
1210
1210
  });
@@ -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,8 @@ 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
+ changeOnSelect: true,
1312
1313
  style: props.style,
1313
1314
  disabled: props.readonly,
1314
1315
  placeholder: '请选择',
@@ -1341,7 +1342,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1341
1342
 
1342
1343
  _this = _super.call.apply(_super, [this].concat(args));
1343
1344
 
1344
- _defineProperty(_assertThisInitialized(_this), "ref", React$1.createRef());
1345
+ _defineProperty(_assertThisInitialized(_this), "ref", React.createRef());
1345
1346
 
1346
1347
  _defineProperty(_assertThisInitialized(_this), "onChange", function (changed, data) {
1347
1348
  var _this$props$onChange, _this$props;
@@ -1362,7 +1363,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1362
1363
  label: '所属分组',
1363
1364
  name: 'parentId',
1364
1365
  Comp: function Comp(props) {
1365
- return /*#__PURE__*/React$1.createElement(ParentSelector, Object.assign({}, props, {
1366
+ return /*#__PURE__*/React.createElement(ParentSelector, Object.assign({}, props, {
1366
1367
  parentOptions: _this2.props.parentOptions
1367
1368
  }));
1368
1369
  },
@@ -1374,7 +1375,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1374
1375
  label: '参数 Key',
1375
1376
  name: 'key',
1376
1377
  Comp: function Comp(props) {
1377
- return /*#__PURE__*/React$1.createElement(Input, Object.assign({
1378
+ return /*#__PURE__*/React.createElement(Input, Object.assign({
1378
1379
  placeholder: '请输入'
1379
1380
  }, props));
1380
1381
  },
@@ -1384,7 +1385,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1384
1385
  label: '参数名称',
1385
1386
  name: 'name',
1386
1387
  Comp: function Comp(props) {
1387
- return /*#__PURE__*/React$1.createElement(Input, Object.assign({
1388
+ return /*#__PURE__*/React.createElement(Input, Object.assign({
1388
1389
  placeholder: '请输入'
1389
1390
  }, props));
1390
1391
  }
@@ -1392,10 +1393,10 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1392
1393
  label: '参数类型',
1393
1394
  name: 'valueType',
1394
1395
  Comp: function Comp(props) {
1395
- return /*#__PURE__*/React$1.createElement(Select, Object.assign({
1396
+ return /*#__PURE__*/React.createElement(Select, Object.assign({}, props, {
1396
1397
  placeholder: '请选择'
1397
- }, props), ParamTypeOptions.map(function (it) {
1398
- return /*#__PURE__*/React$1.createElement(Select.Option, {
1398
+ }), ParamTypeOptions.map(function (it) {
1399
+ return /*#__PURE__*/React.createElement(Select.Option, {
1399
1400
  key: it.value,
1400
1401
  value: it.value
1401
1402
  }, it.label);
@@ -1411,7 +1412,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1411
1412
  Comp: function Comp(props) {
1412
1413
  var _this2$ref$current;
1413
1414
 
1414
- return /*#__PURE__*/React$1.createElement(ParamRenderer, Object.assign({}, props, {
1415
+ return /*#__PURE__*/React.createElement(ParamRenderer, Object.assign({}, props, {
1415
1416
  expiriesOptions: _this2.props.expiriesOptions,
1416
1417
  valueType: (_this2$ref$current = _this2.ref.current) === null || _this2$ref$current === void 0 ? void 0 : _this2$ref$current.getFieldValue('valueType')
1417
1418
  }));
@@ -1423,7 +1424,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1423
1424
  label: '参数说明',
1424
1425
  name: 'description',
1425
1426
  Comp: function Comp(props) {
1426
- return /*#__PURE__*/React$1.createElement(Input.TextArea, Object.assign({
1427
+ return /*#__PURE__*/React.createElement(Input.TextArea, Object.assign({
1427
1428
  placeholder: '请输入'
1428
1429
  }, props));
1429
1430
  }
@@ -1432,7 +1433,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1432
1433
  }, {
1433
1434
  key: "render",
1434
1435
  value: function render() {
1435
- return /*#__PURE__*/React$1.createElement(Form, {
1436
+ return /*#__PURE__*/React.createElement(Form, {
1436
1437
  className: "param-form",
1437
1438
  ref: this.ref,
1438
1439
  key: JSON.stringify(this.props.initialValues),
@@ -1440,7 +1441,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1440
1441
  onFinish: this.props.onSubmit,
1441
1442
  onValuesChange: this.onChange
1442
1443
  }, this.formItems.map(function (it) {
1443
- return /*#__PURE__*/React$1.createElement(Form.Item, {
1444
+ return /*#__PURE__*/React.createElement(Form.Item, {
1444
1445
  key: it.name,
1445
1446
  label: it.label,
1446
1447
  name: it.name,
@@ -1452,8 +1453,8 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1452
1453
  }
1453
1454
  }],
1454
1455
  validateTrigger: 'onBlur'
1455
- }, /*#__PURE__*/React$1.createElement(it.Comp, null));
1456
- }), this.props.onSubmit && /*#__PURE__*/React$1.createElement(Button, {
1456
+ }, /*#__PURE__*/React.createElement(it.Comp, null));
1457
+ }), this.props.onSubmit && /*#__PURE__*/React.createElement(Button, {
1457
1458
  type: "primary",
1458
1459
  htmlType: "submit"
1459
1460
  }, "\u63D0\u4EA4"));
@@ -1479,7 +1480,7 @@ var ParamFormModalEl = /*#__PURE__*/function (_PureComponent2) {
1479
1480
 
1480
1481
  _this3 = _super2.call.apply(_super2, [this].concat(args));
1481
1482
 
1482
- _defineProperty(_assertThisInitialized(_this3), "ref", React$1.createRef());
1483
+ _defineProperty(_assertThisInitialized(_this3), "ref", React.createRef());
1483
1484
 
1484
1485
  _defineProperty(_assertThisInitialized(_this3), "state", {
1485
1486
  visible: false,
@@ -1533,20 +1534,20 @@ var ParamFormModalEl = /*#__PURE__*/function (_PureComponent2) {
1533
1534
  }, {
1534
1535
  key: "render",
1535
1536
  value: function render() {
1536
- return /*#__PURE__*/React$1.createElement(Modal, {
1537
+ return /*#__PURE__*/React.createElement(Modal, {
1537
1538
  key: String(this.state.visible),
1538
1539
  width: 640,
1539
1540
  closable: false,
1540
1541
  title: !this.isEdit ? '新增参数' : '修改参数',
1541
1542
  visible: this.state.visible,
1542
- footer: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Button, {
1543
+ footer: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
1543
1544
  onClick: this.onHide
1544
- }, "\u53D6\u6D88"), /*#__PURE__*/React$1.createElement(Button, {
1545
+ }, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
1545
1546
  type: "primary",
1546
1547
  onClick: this.onSubmit,
1547
1548
  loading: this.state.pending
1548
1549
  }, "\u786E\u8BA4"))
1549
- }, /*#__PURE__*/React$1.createElement(ParamForm, Object.assign({}, this.props, {
1550
+ }, /*#__PURE__*/React.createElement(ParamForm, Object.assign({}, this.props, {
1550
1551
  ref: this.ref,
1551
1552
  onSubmit: undefined
1552
1553
  })));
@@ -1598,7 +1599,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1598
1599
 
1599
1600
  _this = _super.call.apply(_super, [this].concat(args));
1600
1601
 
1601
- _defineProperty(_assertThisInitialized(_this), "ref", React$1.createRef());
1602
+ _defineProperty(_assertThisInitialized(_this), "ref", React.createRef());
1602
1603
 
1603
1604
  _defineProperty(_assertThisInitialized(_this), "onChange", function (changed, data) {
1604
1605
  var _this$props$onChange, _this$props;
@@ -1618,7 +1619,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1618
1619
  label: 'Parameter',
1619
1620
  name: 'paramId',
1620
1621
  Comp: function Comp(props) {
1621
- return /*#__PURE__*/React$1.createElement(ParentSelector, Object.assign({}, props, {
1622
+ return /*#__PURE__*/React.createElement(ParentSelector, Object.assign({}, props, {
1622
1623
  readonly: true
1623
1624
  }));
1624
1625
  }
@@ -1626,7 +1627,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1626
1627
  label: 'Description',
1627
1628
  name: 'description',
1628
1629
  Comp: function Comp(props) {
1629
- return /*#__PURE__*/React$1.createElement("span", {
1630
+ return /*#__PURE__*/React.createElement("span", {
1630
1631
  className: "param-value-editor-desc",
1631
1632
  style: {
1632
1633
  lineHeight: '20px',
@@ -1638,7 +1639,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1638
1639
  label: 'Value before',
1639
1640
  name: 'valueBefore',
1640
1641
  Comp: function Comp(props) {
1641
- return /*#__PURE__*/React$1.createElement(ParamRenderer, Object.assign({}, props, {
1642
+ return /*#__PURE__*/React.createElement(ParamRenderer, Object.assign({}, props, {
1642
1643
  readonly: true,
1643
1644
  parentOptions: _this2.props.allParams
1644
1645
  }));
@@ -1647,7 +1648,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1647
1648
  label: 'Value after',
1648
1649
  name: 'value',
1649
1650
  Comp: function Comp(props) {
1650
- return /*#__PURE__*/React$1.createElement(ParamRenderer, Object.assign({}, props, {
1651
+ return /*#__PURE__*/React.createElement(ParamRenderer, Object.assign({}, props, {
1651
1652
  expiriesOptions: _this2.props.expiriesOptions,
1652
1653
  valueType: _this2.props.valueType
1653
1654
  }));
@@ -1663,7 +1664,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1663
1664
  }, {
1664
1665
  key: "render",
1665
1666
  value: function render() {
1666
- return /*#__PURE__*/React$1.createElement(Form, {
1667
+ return /*#__PURE__*/React.createElement(Form, {
1667
1668
  className: "param-value-editor",
1668
1669
  ref: this.ref,
1669
1670
  key: this.props.valueType,
@@ -1671,7 +1672,7 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1671
1672
  onFinish: this.props.onSubmit,
1672
1673
  onValuesChange: this.onChange
1673
1674
  }, this.formItems.map(function (it) {
1674
- return /*#__PURE__*/React$1.createElement(Form.Item, {
1675
+ return /*#__PURE__*/React.createElement(Form.Item, {
1675
1676
  key: it.name,
1676
1677
  label: it.label,
1677
1678
  name: it.name,
@@ -1683,8 +1684,8 @@ var ParamValueEditor = /*#__PURE__*/function (_PureComponent) {
1683
1684
  }
1684
1685
  }],
1685
1686
  validateTrigger: 'onBlur'
1686
- }, /*#__PURE__*/React$1.createElement(it.Comp, null));
1687
- }), this.props.onSubmit && /*#__PURE__*/React$1.createElement(Button, {
1687
+ }, /*#__PURE__*/React.createElement(it.Comp, null));
1688
+ }), this.props.onSubmit && /*#__PURE__*/React.createElement(Button, {
1688
1689
  type: "primary",
1689
1690
  htmlType: "submit"
1690
1691
  }, "\u63D0\u4EA4"));
@@ -1709,7 +1710,7 @@ var ParamValueEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
1709
1710
 
1710
1711
  _this3 = _super2.call.apply(_super2, [this].concat(args));
1711
1712
 
1712
- _defineProperty(_assertThisInitialized(_this3), "ref", React$1.createRef());
1713
+ _defineProperty(_assertThisInitialized(_this3), "ref", React.createRef());
1713
1714
 
1714
1715
  _defineProperty(_assertThisInitialized(_this3), "state", {
1715
1716
  visible: false,
@@ -1756,20 +1757,20 @@ var ParamValueEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
1756
1757
  _createClass(ParamValueEditorModalEl, [{
1757
1758
  key: "render",
1758
1759
  value: function render() {
1759
- return /*#__PURE__*/React$1.createElement(Modal, {
1760
+ return /*#__PURE__*/React.createElement(Modal, {
1760
1761
  key: String(this.state.visible),
1761
1762
  width: 640,
1762
1763
  title: 'Edit Value',
1763
1764
  closable: false,
1764
1765
  visible: this.state.visible,
1765
- footer: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Button, {
1766
+ footer: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
1766
1767
  onClick: this.onHide
1767
- }, "Cancel"), /*#__PURE__*/React$1.createElement(Button, {
1768
+ }, "Cancel"), /*#__PURE__*/React.createElement(Button, {
1768
1769
  type: "primary",
1769
1770
  onClick: this.onSubmit,
1770
1771
  loading: this.state.pending
1771
1772
  }, "Submit"))
1772
- }, /*#__PURE__*/React$1.createElement(ParamValueEditor, Object.assign({}, this.props, {
1773
+ }, /*#__PURE__*/React.createElement(ParamValueEditor, Object.assign({}, this.props, {
1773
1774
  ref: this.ref,
1774
1775
  onSubmit: undefined
1775
1776
  })));
@@ -1870,7 +1871,7 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1870
1871
 
1871
1872
  _this = _super.call.apply(_super, [this].concat(args));
1872
1873
 
1873
- _defineProperty(_assertThisInitialized(_this), "ref", React$1.createRef());
1874
+ _defineProperty(_assertThisInitialized(_this), "ref", React.createRef());
1874
1875
 
1875
1876
  _defineProperty(_assertThisInitialized(_this), "onChange", function (changed, data) {
1876
1877
  var _this$props$onChange, _this$props;
@@ -1887,12 +1888,12 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1887
1888
  var _this$props$initialVa,
1888
1889
  _this2 = this;
1889
1890
 
1890
- var isFirstLevel = !this.props.allParams && !((_this$props$initialVa = this.props.initialValues) === null || _this$props$initialVa === void 0 ? void 0 : _this$props$initialVa.parentId);
1891
+ var isFirstLevel = !this.props.parentOptions && !((_this$props$initialVa = this.props.initialValues) === null || _this$props$initialVa === void 0 ? void 0 : _this$props$initialVa.parentId);
1891
1892
  var items = [{
1892
1893
  label: '参数组名称',
1893
1894
  name: 'name',
1894
1895
  Comp: function Comp(props) {
1895
- return /*#__PURE__*/React$1.createElement(Input, Object.assign({}, props, {
1896
+ return /*#__PURE__*/React.createElement(Input, Object.assign({}, props, {
1896
1897
  placeholder: '请输入'
1897
1898
  }));
1898
1899
  },
@@ -1903,7 +1904,7 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1903
1904
  label: '业务流程图',
1904
1905
  name: 'descriptionUrl',
1905
1906
  Comp: function Comp(props) {
1906
- return /*#__PURE__*/React$1.createElement(ImageUpload, Object.assign({}, props, {
1907
+ return /*#__PURE__*/React.createElement(ImageUpload, Object.assign({}, props, {
1907
1908
  getSignedUrl: _this2.props.getSignedUrl,
1908
1909
  handleUpload: _this2.props.handleUpload
1909
1910
  }));
@@ -1918,8 +1919,8 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1918
1919
  label: '父级参数组',
1919
1920
  name: 'parentId',
1920
1921
  Comp: function Comp(props) {
1921
- return /*#__PURE__*/React$1.createElement(ParentSelector, Object.assign({}, props, {
1922
- parentOptions: _this2.props.allParams
1922
+ return /*#__PURE__*/React.createElement(ParentSelector, Object.assign({}, props, {
1923
+ parentOptions: _this2.props.parentOptions
1923
1924
  }));
1924
1925
  }
1925
1926
  });
@@ -1930,14 +1931,14 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1930
1931
  }, {
1931
1932
  key: "render",
1932
1933
  value: function render() {
1933
- return /*#__PURE__*/React$1.createElement(Form, {
1934
+ return /*#__PURE__*/React.createElement(Form, {
1934
1935
  className: "param-value-editor",
1935
1936
  ref: this.ref,
1936
1937
  initialValues: this.props.initialValues,
1937
1938
  onFinish: this.props.onSubmit,
1938
1939
  onValuesChange: this.onChange
1939
1940
  }, this.formItems.map(function (it) {
1940
- return /*#__PURE__*/React$1.createElement(Form.Item, {
1941
+ return /*#__PURE__*/React.createElement(Form.Item, {
1941
1942
  key: it.name,
1942
1943
  label: it.label,
1943
1944
  name: it.name,
@@ -1949,8 +1950,8 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
1949
1950
  }
1950
1951
  }],
1951
1952
  validateTrigger: 'onBlur'
1952
- }, /*#__PURE__*/React$1.createElement(it.Comp, null));
1953
- }), this.props.onSubmit && /*#__PURE__*/React$1.createElement(Button, {
1953
+ }, /*#__PURE__*/React.createElement(it.Comp, null));
1954
+ }), this.props.onSubmit && /*#__PURE__*/React.createElement(Button, {
1954
1955
  type: "primary",
1955
1956
  htmlType: "submit"
1956
1957
  }, "\u63D0\u4EA4"));
@@ -1975,7 +1976,7 @@ var ParamGroupEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
1975
1976
 
1976
1977
  _this3 = _super2.call.apply(_super2, [this].concat(args));
1977
1978
 
1978
- _defineProperty(_assertThisInitialized(_this3), "ref", React$1.createRef());
1979
+ _defineProperty(_assertThisInitialized(_this3), "ref", React.createRef());
1979
1980
 
1980
1981
  _defineProperty(_assertThisInitialized(_this3), "state", {
1981
1982
  visible: false,
@@ -2031,20 +2032,20 @@ var ParamGroupEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
2031
2032
  value: function render() {
2032
2033
  var _this$props$initialVa3;
2033
2034
 
2034
- return /*#__PURE__*/React$1.createElement(Modal, {
2035
+ return /*#__PURE__*/React.createElement(Modal, {
2035
2036
  key: String(this.state.visible),
2036
2037
  width: 640,
2037
2038
  title: ((_this$props$initialVa3 = this.props.initialValues) === null || _this$props$initialVa3 === void 0 ? void 0 : _this$props$initialVa3.paramId) ? '编辑参数组' : '新增参数组',
2038
2039
  closable: false,
2039
2040
  visible: this.state.visible,
2040
- footer: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Button, {
2041
+ footer: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
2041
2042
  onClick: this.onHide
2042
- }, "\u53D6\u6D88"), /*#__PURE__*/React$1.createElement(Button, {
2043
+ }, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
2043
2044
  type: "primary",
2044
2045
  onClick: this.onSubmit,
2045
2046
  loading: this.state.pending
2046
2047
  }, "\u786E\u5B9A"))
2047
- }, /*#__PURE__*/React$1.createElement(ParamGroupEditor, Object.assign({}, this.props, {
2048
+ }, /*#__PURE__*/React.createElement(ParamGroupEditor, Object.assign({}, this.props, {
2048
2049
  ref: this.ref,
2049
2050
  onSubmit: undefined
2050
2051
  })));
@@ -2138,7 +2139,7 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2138
2139
 
2139
2140
  _defineProperty(_assertThisInitialized(_this), "state", initState(_this.props));
2140
2141
 
2141
- _defineProperty(_assertThisInitialized(_this), "ref", React$1.createRef());
2142
+ _defineProperty(_assertThisInitialized(_this), "ref", React.createRef());
2142
2143
 
2143
2144
  return _this;
2144
2145
  }
@@ -2161,7 +2162,9 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2161
2162
  if (it.$paramId === parentId) {
2162
2163
  return _objectSpread2(_objectSpread2({}, it), {}, {
2163
2164
  children: (it.children || []).concat(_this2.props.targetParams.map(function ($paramId) {
2164
- return _this2.state.paramsMap[$paramId];
2165
+ return _objectSpread2(_objectSpread2({}, _this2.state.paramsMap[$paramId]), {}, {
2166
+ parentId: it.$paramId
2167
+ });
2165
2168
  }))
2166
2169
  });
2167
2170
  }
@@ -2182,7 +2185,7 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2182
2185
  label: '选择分组',
2183
2186
  name: 'parentId',
2184
2187
  Comp: function Comp(props) {
2185
- return /*#__PURE__*/React$1.createElement(ParentSelector, Object.assign({}, props, {
2188
+ return /*#__PURE__*/React.createElement(ParentSelector, Object.assign({}, props, {
2186
2189
  parentOptions: _this3.state.options
2187
2190
  }));
2188
2191
  }
@@ -2192,12 +2195,12 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2192
2195
  }, {
2193
2196
  key: "render",
2194
2197
  value: function render() {
2195
- return /*#__PURE__*/React$1.createElement(Form, {
2198
+ return /*#__PURE__*/React.createElement(Form, {
2196
2199
  className: "param-value-editor",
2197
2200
  ref: this.ref,
2198
2201
  onFinish: this.props.onSubmit
2199
2202
  }, this.formItems.map(function (it) {
2200
- return /*#__PURE__*/React$1.createElement(Form.Item, {
2203
+ return /*#__PURE__*/React.createElement(Form.Item, {
2201
2204
  key: it.name,
2202
2205
  label: it.label,
2203
2206
  name: it.name,
@@ -2209,8 +2212,8 @@ var ParamMover = /*#__PURE__*/function (_PureComponent) {
2209
2212
  }
2210
2213
  }],
2211
2214
  validateTrigger: 'onBlur'
2212
- }, /*#__PURE__*/React$1.createElement(it.Comp, null));
2213
- }), this.props.onSubmit && /*#__PURE__*/React$1.createElement(Button, {
2215
+ }, /*#__PURE__*/React.createElement(it.Comp, null));
2216
+ }), this.props.onSubmit && /*#__PURE__*/React.createElement(Button, {
2214
2217
  type: "primary",
2215
2218
  htmlType: "submit"
2216
2219
  }, "\u63D0\u4EA4"));
@@ -2250,7 +2253,7 @@ var ParamMoverModalEl = /*#__PURE__*/function (_PureComponent2) {
2250
2253
 
2251
2254
  _this4 = _super2.call.apply(_super2, [this].concat(args));
2252
2255
 
2253
- _defineProperty(_assertThisInitialized(_this4), "ref", React$1.createRef());
2256
+ _defineProperty(_assertThisInitialized(_this4), "ref", React.createRef());
2254
2257
 
2255
2258
  _defineProperty(_assertThisInitialized(_this4), "state", {
2256
2259
  visible: false,
@@ -2290,20 +2293,20 @@ var ParamMoverModalEl = /*#__PURE__*/function (_PureComponent2) {
2290
2293
  _createClass(ParamMoverModalEl, [{
2291
2294
  key: "render",
2292
2295
  value: function render() {
2293
- return /*#__PURE__*/React$1.createElement(Modal, {
2296
+ return /*#__PURE__*/React.createElement(Modal, {
2294
2297
  key: String(this.state.visible),
2295
2298
  width: 640,
2296
2299
  title: '移动参数',
2297
2300
  closable: false,
2298
2301
  visible: this.state.visible,
2299
- footer: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Button, {
2302
+ footer: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
2300
2303
  onClick: this.onHide
2301
- }, "\u53D6\u6D88"), /*#__PURE__*/React$1.createElement(Button, {
2304
+ }, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
2302
2305
  type: "primary",
2303
2306
  onClick: this.onSubmit,
2304
2307
  loading: this.state.pending
2305
2308
  }, "\u786E\u5B9A"))
2306
- }, /*#__PURE__*/React$1.createElement(ParamMover, Object.assign({}, this.props, {
2309
+ }, /*#__PURE__*/React.createElement(ParamMover, Object.assign({}, this.props, {
2307
2310
  ref: this.ref,
2308
2311
  onSubmit: undefined
2309
2312
  })));
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.8",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",