szld-libs 0.4.17 → 0.4.18

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.
@@ -103,7 +103,6 @@ const MySelect = ({
103
103
  prev[cur] = value2;
104
104
  return prev;
105
105
  }, {});
106
- message.success(JSON.stringify(newObj));
107
106
  onChange(newObj);
108
107
  }
109
108
  onChange(val);
@@ -553,9 +553,12 @@ function useDynamicForm(props) {
553
553
  getTitle,
554
554
  langId,
555
555
  onChange: (val) => {
556
- var _a2;
557
- if (((_a2 = item.json) == null ? void 0 : _a2.inputType) === "instance-url") {
558
- form.setFieldsValue(val);
556
+ if (val && typeof val === "object" && !Array.isArray(val)) {
557
+ alert(JSON.stringify(val));
558
+ form.setFieldsValue({
559
+ ...form.getFieldsValue(),
560
+ ...val
561
+ });
559
562
  }
560
563
  form.setFieldValue(item.attrid, val);
561
564
  }
@@ -104,7 +104,6 @@ const MySelect = ({
104
104
  prev[cur] = value2;
105
105
  return prev;
106
106
  }, {});
107
- antd.message.success(JSON.stringify(newObj));
108
107
  onChange(newObj);
109
108
  }
110
109
  onChange(val);
@@ -554,9 +554,12 @@ function useDynamicForm(props) {
554
554
  getTitle,
555
555
  langId,
556
556
  onChange: (val) => {
557
- var _a2;
558
- if (((_a2 = item.json) == null ? void 0 : _a2.inputType) === "instance-url") {
559
- form.setFieldsValue(val);
557
+ if (val && typeof val === "object" && !Array.isArray(val)) {
558
+ alert(JSON.stringify(val));
559
+ form.setFieldsValue({
560
+ ...form.getFieldsValue(),
561
+ ...val
562
+ });
560
563
  }
561
564
  form.setFieldValue(item.attrid, val);
562
565
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.4.17",
4
+ "version": "0.4.18",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",