Element-ui Popover pop-up box click on the current hidden other pop-up box

as the title says, click the current and close other pop-up boxes

clipboard.png
icon icon

clipboard.png

clipboard.png

Apr.07,2021

first of all, you bind a ref attribute to all pop-up boxes, ref= "popover" , and then you can close the pop-up layer through this.$refs [name]. Value = false , you can bind all pop-up layers to a show event, that is, any one display, and all other ref's value will be assigned to false.


using this method, you can close the pop-up box this.$refs ['name'] .doClose ()

when you click another button.
Menu