Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在选择项目时找不到关闭上下文菜单的方法,使用Popper。不过,这似乎是一个基本功能,我错过了什么吗?
我唯一看到的是“隐藏”事件,但它是事件而不是方法。
像这样:
<popper ref="popper" ... > ... </popper>
然后:this.$refs.popper.doClose()
this.$refs.popper.doClose()