vue passes from child to parent (parent component gets the value of child component)

1. The parent component gets the value of the child component

Insert image description here

2. Get the value of the subcomponent through ref, write the click event to the parent component, and give a name to the subcomponent ref

Insert image description here

3. Get the value in the sub-component data.form form through this.$refs.blindsamplData.form

Insert image description here

4.yyds

Guess you like

Origin blog.csdn.net/weixin_53587375/article/details/120503351