@signalplus/params-about 1.0.0 → 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 +5 -15
- package/lib/es/index.js +5 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -26,9 +26,7 @@ interface ValidateInfo {
|
|
|
26
26
|
[key: string]: undefined | string | ValidateInfo;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
}
|
|
29
|
+
declare type ParamValueStruct = Record<string, any>;
|
|
32
30
|
interface ParamRendererProps extends BaseInputProps {
|
|
33
31
|
valueType?: ParamType;
|
|
34
32
|
value?: ParamValueStruct;
|
|
@@ -70,9 +68,7 @@ interface ParamFormData {
|
|
|
70
68
|
key: string;
|
|
71
69
|
name?: string;
|
|
72
70
|
valueType: ParamType;
|
|
73
|
-
defaultValue?:
|
|
74
|
-
[key: string]: any;
|
|
75
|
-
};
|
|
71
|
+
defaultValue?: Record<string, any>;
|
|
76
72
|
description?: string;
|
|
77
73
|
}
|
|
78
74
|
interface ParamFormProps {
|
|
@@ -117,15 +113,9 @@ declare class ParamFormModal {
|
|
|
117
113
|
interface ParamValueEditorData {
|
|
118
114
|
paramId: string;
|
|
119
115
|
description?: string;
|
|
120
|
-
valueBefore:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
value?: {
|
|
124
|
-
[key: string]: any;
|
|
125
|
-
};
|
|
126
|
-
defaultValue?: {
|
|
127
|
-
[key: string]: any;
|
|
128
|
-
};
|
|
116
|
+
valueBefore: Record<string, any>;
|
|
117
|
+
value?: Record<string, any>;
|
|
118
|
+
defaultValue?: Record<string, any>;
|
|
129
119
|
}
|
|
130
120
|
interface ParamValueEditorProps {
|
|
131
121
|
allParams: ParentSelectorProps['parentOptions'];
|
package/lib/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Bundle of @signalplus/params-about
|
|
3
3
|
* Generated: 2022-05-09
|
|
4
|
-
* Version: 1.0.
|
|
4
|
+
* Version: 1.0.1
|
|
5
5
|
* License: MIT
|
|
6
6
|
* Author: 2631541504@qq.com
|
|
7
7
|
*/
|
|
@@ -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
|
});
|