@ -116,12 +116,14 @@ The first is to use multiple `a-form-item`:
</a-form-item>
```
The second way is to wrap it with a custom component and call `useFormItemContext` in the custom component
The second way is to wrap it with a custom component and call `useFormItemContext` in the custom component, It is equivalent to merging multiple form items into one.
@ -138,6 +140,15 @@ The second way is to wrap it with a custom component and call `useFormItemContex
</a-form-item>
```
Third, the component library provides an `a-form-item-rest` component, which will prevent data collection. You can put form items that do not need to be collected and verified into this component. It is the same as the first This method is very similar, but it does not generate additional dom nodes.
Form.Item hijacks the only child element and listens to the `blur` and `change` events to achieve the purpose of automatic verification, so please make sure that the form field is not wrapped by other elements. If there are multiple child elements, only the change of the first child element will be monitored.