lu-lowcode-package-form 0.11.21 → 0.11.22
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/index.cjs.js +202 -202
- package/dist/index.es.js +14988 -14983
- package/package.json +1 -1
- package/src/components/form-container/index.jsx +11 -3
package/package.json
CHANGED
@@ -446,6 +446,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
446
446
|
const handleFieldsWithFill = async (fieldValues, child, parentIdentifier, componentName) => {
|
447
447
|
// console.log("handleFieldsWithFill child.identifier", child.identifier)
|
448
448
|
// console.log("handleFieldsWithFill parentIdentifier", parentIdentifier)
|
449
|
+
console.log("handleFieldsWithFill componentName", componentName)
|
449
450
|
const withFill = child?.component?.props.withFill;
|
450
451
|
const withDataFetch = child?.component?.props.withDataFetch;
|
451
452
|
let withFillIndex = 0
|
@@ -487,12 +488,19 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
487
488
|
filter_value = filter_value[withFillIndex]
|
488
489
|
}
|
489
490
|
}
|
490
|
-
if (
|
491
|
-
|
491
|
+
if (filter_value && typeof filter_value === "string") {
|
492
|
+
try {
|
492
493
|
filter_value = JSON.parse(filter_value)
|
494
|
+
} catch (error) {
|
493
495
|
}
|
494
|
-
filter_value = filter_value?.value
|
495
496
|
}
|
497
|
+
if (filter_value?.value) filter_value = filter_value.value
|
498
|
+
// if (componentName == "Field.WithSingleSelect" && filter_value) {
|
499
|
+
// if (typeof filter_value === "string") {
|
500
|
+
// filter_value = JSON.parse(filter_value)
|
501
|
+
// }
|
502
|
+
// filter_value = filter_value?.value
|
503
|
+
// }
|
496
504
|
params.filter[condition_column.column_name] = filter_value
|
497
505
|
}
|
498
506
|
|