1、在el-popover中添加属性
ref="popoverSH"
2、在你的事件需要它显示/隐藏的地方使用
click() {
//点击隐藏
this.$refs.popoverSH.doClose()
//点击显示
this.$refs.popoverSH.doShow()
},
PS:个人笔记
1、在el-popover中添加属性
ref="popoverSH"
2、在你的事件需要它显示/隐藏的地方使用
click() {
//点击隐藏
this.$refs.popoverSH.doClose()
//点击显示
this.$refs.popoverSH.doShow()
},
PS:个人笔记