Element: [Feature Request] Hope messageBox can offer a method to close

Created on 17 Nov 2017  ·  3Comments  ·  Source: ElemeFE/element

Existing Component

Component Name

messageBox

Description

如果在打开了messageBox 之后,路由后退,messageBox会依然存在,希望提供一个方法在路由守卫里关闭它

Most helpful comment

After #8050, you can close it by this.$msgbox.close() or MessageBox.close().

All 3 comments

Translation of this issue:

Existing Component

yes

Component Name

MessageBox

Description

If the route is backward after the messageBox is opened, the messageBox will still exist, hoping to provide a method to close it in the routing guard

After #8050, you can close it by this.$msgbox.close() or MessageBox.close().

Please write this solution into official document! I was looking for this exact thing for two days!

Was this page helpful?
0 / 5 - 0 ratings