Merge branch '2.0' of https://github.com/iview/iview into 2.0
This commit is contained in:
commit
d519d68561
4 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -119,6 +119,6 @@ export default {
|
|||
destroy () {
|
||||
let instance = getMessageInstance();
|
||||
messageInstance = null;
|
||||
instance.destroy();
|
||||
instance.destroy('ivu-message');
|
||||
}
|
||||
};
|
|
@ -113,6 +113,6 @@ export default {
|
|||
destroy () {
|
||||
let instance = getNoticeInstance();
|
||||
noticeInstance = null;
|
||||
instance.destroy();
|
||||
instance.destroy('ivu-notice');
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue