美文网首页
Vue使用element-ui中的popover点击取消按钮隐藏

Vue使用element-ui中的popover点击取消按钮隐藏

作者: daozun | 来源:发表于2018-06-27 14:50 被阅读0次

最近在项目中使用elementui中的table组件搭配popover组件进行开发,遇到了一些问题,特意在此记录:

在el-popover中加属性 :ref="`popover-${scope.$index}`" 

取消el-button按钮加 @click="scope._self.$refs[`popover-${scope.$index}`].doClose()" 

原文:https://blog.csdn.net/Gunahao/article/details/79491879,感谢这位热心评论的网友!

相关文章

网友评论

      本文标题:Vue使用element-ui中的popover点击取消按钮隐藏

      本文链接:https://www.haomeiwen.com/subject/jqwbyftx.html