@signalplus/params-about 0.1.6 → 0.1.7
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 +1 -1
- package/lib/es/index.js +3 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -180,7 +180,7 @@ interface ParamGroupEditorProps extends Required<Pick<ImageUploadProps, 'getSign
|
|
|
180
180
|
/**
|
|
181
181
|
* 传了表示为有父级
|
|
182
182
|
* */
|
|
183
|
-
|
|
183
|
+
parentOptions?: ParentSelectorProps['parentOptions'];
|
|
184
184
|
initialValues?: Partial<ParamGroupEditorData>;
|
|
185
185
|
onChange?(data: ParamGroupEditorData): void;
|
|
186
186
|
onSubmit?(data: ParamGroupEditorData): any;
|
package/lib/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Bundle of @signalplus/params-about
|
|
3
3
|
* Generated: 2022-04-08
|
|
4
|
-
* Version: 0.1.
|
|
4
|
+
* Version: 0.1.7
|
|
5
5
|
* License: MIT
|
|
6
6
|
* Author: 2631541504@qq.com
|
|
7
7
|
*/
|
|
@@ -1887,7 +1887,7 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
|
|
|
1887
1887
|
var _this$props$initialVa,
|
|
1888
1888
|
_this2 = this;
|
|
1889
1889
|
|
|
1890
|
-
var isFirstLevel = !this.props.
|
|
1890
|
+
var isFirstLevel = !this.props.parentOptions && !((_this$props$initialVa = this.props.initialValues) === null || _this$props$initialVa === void 0 ? void 0 : _this$props$initialVa.parentId);
|
|
1891
1891
|
var items = [{
|
|
1892
1892
|
label: '参数组名称',
|
|
1893
1893
|
name: 'name',
|
|
@@ -1919,7 +1919,7 @@ var ParamGroupEditor = /*#__PURE__*/function (_PureComponent) {
|
|
|
1919
1919
|
name: 'parentId',
|
|
1920
1920
|
Comp: function Comp(props) {
|
|
1921
1921
|
return /*#__PURE__*/React.createElement(ParentSelector, Object.assign({}, props, {
|
|
1922
|
-
parentOptions: _this2.props.
|
|
1922
|
+
parentOptions: _this2.props.parentOptions
|
|
1923
1923
|
}));
|
|
1924
1924
|
}
|
|
1925
1925
|
});
|