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.
- package/dist/szld-components.es.js +734 -732
- package/dist/szld-components.umd.js +32 -32
- package/es/components/DynamicForm/mySelect/index.js +0 -1
- package/es/components/DynamicForm/useDynamicForm.js +6 -3
- package/lib/components/DynamicForm/mySelect/index.js +0 -1
- package/lib/components/DynamicForm/useDynamicForm.js +6 -3
- package/package.json +1 -1
|
@@ -553,9 +553,12 @@ function useDynamicForm(props) {
|
|
|
553
553
|
getTitle,
|
|
554
554
|
langId,
|
|
555
555
|
onChange: (val) => {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
form.setFieldsValue(
|
|
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
|
}
|
|
@@ -554,9 +554,12 @@ function useDynamicForm(props) {
|
|
|
554
554
|
getTitle,
|
|
555
555
|
langId,
|
|
556
556
|
onChange: (val) => {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
form.setFieldsValue(
|
|
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
|
}
|