@signalplus/params-about 0.1.12 → 0.1.15

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
@@ -49,6 +49,7 @@ declare class ParamRenderer extends PureComponent<ParamRendererProps> {
49
49
  }
50
50
 
51
51
  interface ParentSelectorOption {
52
+ parentId?: string | number;
52
53
  $paramId: string | number;
53
54
  name: string;
54
55
  disabled?: boolean;
@@ -217,13 +218,13 @@ declare class ParamGroupEditorModal {
217
218
  }
218
219
 
219
220
  interface ParamMoverData {
220
- parentId: string;
221
+ parentId: string | number;
221
222
  }
222
223
  interface ParamMoverProps {
223
224
  /**
224
225
  * 需要确保 targetParams 的元素之间无父子或者祖先子孙关系
225
226
  * */
226
- targetParams: string[];
227
+ targetParams: (string | number)[];
227
228
  allParams: NonNullable<ParentSelectorProps['parentOptions']>;
228
229
  onSubmit?(params: NonNullable<ParentSelectorProps['parentOptions']>): any;
229
230
  }
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
3
  * Generated: 2022-04-10
4
- * Version: 0.1.12
4
+ * Version: 0.1.15
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -2115,10 +2115,11 @@ function genParamsMap(props) {
2115
2115
  }
2116
2116
 
2117
2117
  function initState(props) {
2118
+ var paramsMap = genParamsMap(props);
2118
2119
  return {
2119
2120
  preProps: props,
2120
2121
  options: genOptions(props),
2121
- paramsMap: genParamsMap(props)
2122
+ paramsMap: paramsMap
2122
2123
  };
2123
2124
  }
2124
2125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "0.1.12",
3
+ "version": "0.1.15",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",