Iview 父子组建传递方法
父类: export default
provide() {
return {
updateBatchClose: this.updateBatchClose
}
}
mothots 加入
updateBatchClose() {
this.winvisible = false;
},
子类:export default
inject: ['updateBatchClose']