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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lu-lowcode-package-form",
3
- "version": "0.11.7",
3
+ "version": "0.11.9",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
@@ -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>