子组件
<addThings ref="eidtList"></addThings>
父组件点击事件
submitForm() {
// 获取子组件填写的内容
var item = this.$refs["eidtList"].passFather();
console.log(item, "获取子组件填写的内容");
},
子组件定义一个返回数据的方法
// 父组件调这个方法获取子组件填写的数据
passFather() {
return this.ruleForm; //this.ruleForm是子组件填写的数据
},