bugfix: notice & message 's destroy method.

This commit is contained in:
Lawrence Lee 2017-06-01 18:05:20 +08:00
parent b087f93efa
commit 1c82a9abbf
4 changed files with 8 additions and 4 deletions

View file

@ -25,10 +25,10 @@ Notification.newInstance = properties => {
notification.close(name);
},
component: notification,
destroy () {
destroy (element) {
notification.closeAll();
setTimeout(function() {
document.body.removeChild(document.getElementsByClassName('ivu-message')[0].parentElement);
document.body.removeChild(document.getElementsByClassName(element)[0]);
}, 500);
}
};