mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Notification: add closeAll
This commit is contained in:
@@ -84,4 +84,10 @@ Notification.close = function(id, userOnClose) {
|
||||
}
|
||||
};
|
||||
|
||||
Notification.closeAll = function() {
|
||||
for (let i = instances.length - 1; i >= 0; i--) {
|
||||
instances[i].close();
|
||||
}
|
||||
};
|
||||
|
||||
export default Notification;
|
||||
|
||||
Reference in New Issue
Block a user