@signalplus/params-about 0.1.52 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -26,10 +26,7 @@ interface ValidateInfo {
26
26
  [key: string]: undefined | string | ValidateInfo;
27
27
  }
28
28
 
29
- interface ParamValueStruct {
30
- valueId?: string;
31
- [key: string]: any;
32
- }
29
+ declare type ParamValueStruct = Record<string, any>;
33
30
  interface ParamRendererProps extends BaseInputProps {
34
31
  valueType?: ParamType;
35
32
  value?: ParamValueStruct;
@@ -71,10 +68,7 @@ interface ParamFormData {
71
68
  key: string;
72
69
  name?: string;
73
70
  valueType: ParamType;
74
- defaultValue?: {
75
- valueId?: string;
76
- [key: string]: any;
77
- };
71
+ defaultValue?: Record<string, any>;
78
72
  description?: string;
79
73
  }
80
74
  interface ParamFormProps {
@@ -119,18 +113,9 @@ declare class ParamFormModal {
119
113
  interface ParamValueEditorData {
120
114
  paramId: string;
121
115
  description?: string;
122
- valueBefore: {
123
- valueId?: string;
124
- [key: string]: any;
125
- };
126
- value?: {
127
- valueId?: string;
128
- [key: string]: any;
129
- };
130
- defaultValue?: {
131
- valueId?: string;
132
- [key: string]: any;
133
- };
116
+ valueBefore: Record<string, any>;
117
+ value?: Record<string, any>;
118
+ defaultValue?: Record<string, any>;
134
119
  }
135
120
  interface ParamValueEditorProps {
136
121
  allParams: ParentSelectorProps['parentOptions'];
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
- * Generated: 2022-04-29
4
- * Version: 0.1.52
3
+ * Generated: 2022-05-09
4
+ * Version: 1.0.1
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -721,7 +721,7 @@ var TextArray = /*#__PURE__*/function (_PureComponent) {
721
721
  key: i
722
722
  }, /*#__PURE__*/React.createElement("input", {
723
723
  type: "text",
724
- placeholder: "Phone",
724
+ placeholder: "",
725
725
  value: it,
726
726
  onChange: _this2.onChange.bind(null, i),
727
727
  onBlur: _this2.props.onBlur,
@@ -1432,7 +1432,7 @@ var ParamForm = /*#__PURE__*/function (_PureComponent) {
1432
1432
  })
1433
1433
  }, {
1434
1434
  label: '默认值',
1435
- name: 'value',
1435
+ name: 'defaultValue',
1436
1436
  required: config === null || config === void 0 ? void 0 : config.required,
1437
1437
  Comp: function Comp(props) {
1438
1438
  var _this2$ref$current$ge, _this2$ref$current, _this2$props$initialV;
@@ -1541,7 +1541,7 @@ var ParamFormModalEl = /*#__PURE__*/function (_PureComponent2) {
1541
1541
  }
1542
1542
 
1543
1543
  return _this3.props.onSubmit(data);
1544
- }).then(_this3.onHide).finally(function () {
1544
+ }).then(_this3.onHide).catch(console.error).finally(function () {
1545
1545
  return _this3.setState({
1546
1546
  pending: false
1547
1547
  });
@@ -1788,7 +1788,7 @@ var ParamValueEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
1788
1788
  }
1789
1789
 
1790
1790
  return _this3.props.onSubmit(data);
1791
- }).then(_this3.onHide).finally(function () {
1791
+ }).then(_this3.onHide).catch(console.error).finally(function () {
1792
1792
  return _this3.setState({
1793
1793
  pending: false
1794
1794
  });
@@ -2060,7 +2060,7 @@ var ParamGroupEditorModalEl = /*#__PURE__*/function (_PureComponent2) {
2060
2060
  }
2061
2061
 
2062
2062
  return _this3.props.onSubmit(data);
2063
- }).then(_this3.onHide).finally(function () {
2063
+ }).then(_this3.onHide).catch(console.error).finally(function () {
2064
2064
  return _this3.setState({
2065
2065
  pending: false
2066
2066
  });
@@ -2352,7 +2352,7 @@ var ParamMoverModalEl = /*#__PURE__*/function (_PureComponent2) {
2352
2352
  });
2353
2353
  }).then(function () {
2354
2354
  return _this4.props.onSubmit(_this4.ref.current.newParams);
2355
- }).then(_this4.onHide).finally(function () {
2355
+ }).then(_this4.onHide).catch(console.error).finally(function () {
2356
2356
  return _this4.setState({
2357
2357
  pending: false
2358
2358
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "0.1.52",
3
+ "version": "1.0.1",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",