Merge branch '2.0' of https://github.com/iview/iview into 2.0

This commit is contained in:
Aresn 2017-06-01 18:24:58 +08:00
commit d519d68561
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);
}
};

View file

@ -119,6 +119,6 @@ export default {
destroy () {
let instance = getMessageInstance();
messageInstance = null;
instance.destroy();
instance.destroy('ivu-message');
}
};

View file

@ -113,6 +113,6 @@ export default {
destroy () {
let instance = getNoticeInstance();
noticeInstance = null;
instance.destroy();
instance.destroy('ivu-notice');
}
};