Notification: remove vm attribute (#11830)

pull/11834/head
k-okina 2018-07-03 13:23:06 +09:00 committed by hetech
parent 5ef3d0ec8d
commit 97fd93e68e
1 changed files with 5 additions and 5 deletions

View File

@ -28,10 +28,10 @@ const Notification = function(options) {
options.message = 'REPLACED_BY_VNODE';
}
instance.id = id;
instance.vm = instance.$mount();
document.body.appendChild(instance.vm.$el);
instance.vm.visible = true;
instance.dom = instance.vm.$el;
instance.$mount();
document.body.appendChild(instance.$el);
instance.visible = true;
instance.dom = instance.$el;
instance.dom.style.zIndex = PopupManager.nextZIndex();
let verticalOffset = options.offset || 0;
@ -41,7 +41,7 @@ const Notification = function(options) {
verticalOffset += 16;
instance.verticalOffset = verticalOffset;
instances.push(instance);
return instance.vm;
return instance;
};
['success', 'warning', 'info', 'error'].forEach(type => {