1、这个方法可以试一试,不一定能实现
watch:{
prop_detail:{//对象,所要传的对象,在props也需要写
deep:true,
immediate:true,
handler(nv){
this.detail = nv,//这个地方看能不能拿到nv,如果能拿到,赋值可能也会有问题
}
},
}
2、能实现,拿到父 页面的数据
detailShow(nv){//是我的弹窗名字
if(!nv) this.detail = {}
this.detail = this.$parent.$data.appointInfo //子组件如何拿到父组件的数据
}