show(){
this.$refs.popupRef.show();
console.log(1111)
},
close(){
this.$refs.popupRef.close();
console.log(2222)
}
点击弹出遮罩层关闭,但打印不出2222,请教是什么原因?
2019/04/29 22:10
感谢作者的QQ回复,我写代码写傻了!!!
show(){
this.$refs.popupRef.show();
console.log(1111)
},
close(){
this.$refs.popupRef.close();
console.log(2222)
}
点击弹出遮罩层关闭,但打印不出2222,请教是什么原因?
2019/04/29 22:10
感谢作者的QQ回复,我写代码写傻了!!!
1 个回复
广州桃子
openPopup(index){
console.log(this.$refs.popup[index]);
this.$refs.popup[index].open();
},
closePopup(index){
console.log(this.$refs.popup[index].show);
this.$refs.popup[index].close();
}
我的这个还是关不掉popup