栋叔
栋叔
  • 发布:2019-04-29 18:55
  • 更新:2019-09-20 09:47
  • 阅读:1760

#插件讨论# 【 popup 弹出层组件 - 1501324336@qq.com 】点击弹出遮罩层关闭执行不了

分类:uni-app

show(){
this.$refs.popupRef.show();
console.log(1111)
},
close(){
this.$refs.popupRef.close();
console.log(2222)
}

点击弹出遮罩层关闭,但打印不出2222,请教是什么原因?

2019/04/29 22:10
感谢作者的QQ回复,我写代码写傻了!!!

2019-04-29 18:55 负责人:无 分享
已邀请:
广州桃子

广州桃子

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

该问题目前已经被锁定, 无法添加新回复