OK
<div>
<BindModal
:dialogBindVisible="dialogBindVisible"
:dialogBindData="dialogBindData"
@close-bind-item="closeBindItem"
@save-bind-item="saveBindItem"
/>
<EditModal
:dialogEditVisible="dialogEditVisible"
:dialogEditData="dialogEditData"
@close-edit-item="closeEditItem"
@save-edit-item="saveEditItem"
/>
</div>
watch: {
dialogBindVisible(newProp, oldProp){
if(newProp !== oldProp) {
this.activityId = "";
log(`newProp, oldProp`, newProp, oldProp);
}
this.visible = newProp;
},
dialogBindData(newProp, oldProp){
this.form = {
...this.form,
...newProp,
};
},
},