lu-lowcode-package-form 0.11.7 → 0.11.9
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 +14982 -14980
- package/package.json +1 -1
- package/src/components/form-container/index.jsx +3 -3
package/package.json
CHANGED
@@ -727,7 +727,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
727
727
|
style={{ marginBottom: 0 }}
|
728
728
|
label=""
|
729
729
|
name={identifier}
|
730
|
-
rules={rules}
|
730
|
+
rules={isShow ? rules : []}
|
731
731
|
>
|
732
732
|
{element}
|
733
733
|
</Form.Item>
|
@@ -739,7 +739,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
739
739
|
style={{ marginBottom: 0 }}
|
740
740
|
label=""
|
741
741
|
name={identifier}
|
742
|
-
rules={rules}
|
742
|
+
rules={isShow ? rules : []}
|
743
743
|
>
|
744
744
|
{React.cloneElement(child, { form: form, fieldName: identifier, onCustomChange, initializeFormRender, recordFieldsChange, removeLastFieldsValues })}
|
745
745
|
</Form.Item>
|
@@ -751,7 +751,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
751
751
|
style={{ marginBottom: 0 }}
|
752
752
|
>
|
753
753
|
{childComponent}
|
754
|
-
</Col>
|
754
|
+
</Col>
|
755
755
|
);
|
756
756
|
})}
|
757
757
|
</Row>
|