background

The child component is a form structure. In the negative component, the child component is generated in a loop, and there is no button to write click events. Each data transfer occurs in the change event of the input box or the drop down list

Page structure

My solution

Ideas:

Write validation methods in the child component and invoke them in the parent component

The child component returns the check function, which is called by ref in the parent component, and then checks whether the check result of the child component is true

code

Child components:Verification method:The parent component:

Afterword.

Each big guy has a better way, please not stingy grant instruction!

Thank you!