mirror of https://github.com/ElemeFE/element
Notification: remove vm attribute (#11830)
parent
5ef3d0ec8d
commit
97fd93e68e
|
@ -28,10 +28,10 @@ const Notification = function(options) {
|
||||||
options.message = 'REPLACED_BY_VNODE';
|
options.message = 'REPLACED_BY_VNODE';
|
||||||
}
|
}
|
||||||
instance.id = id;
|
instance.id = id;
|
||||||
instance.vm = instance.$mount();
|
instance.$mount();
|
||||||
document.body.appendChild(instance.vm.$el);
|
document.body.appendChild(instance.$el);
|
||||||
instance.vm.visible = true;
|
instance.visible = true;
|
||||||
instance.dom = instance.vm.$el;
|
instance.dom = instance.$el;
|
||||||
instance.dom.style.zIndex = PopupManager.nextZIndex();
|
instance.dom.style.zIndex = PopupManager.nextZIndex();
|
||||||
|
|
||||||
let verticalOffset = options.offset || 0;
|
let verticalOffset = options.offset || 0;
|
||||||
|
@ -41,7 +41,7 @@ const Notification = function(options) {
|
||||||
verticalOffset += 16;
|
verticalOffset += 16;
|
||||||
instance.verticalOffset = verticalOffset;
|
instance.verticalOffset = verticalOffset;
|
||||||
instances.push(instance);
|
instances.push(instance);
|
||||||
return instance.vm;
|
return instance;
|
||||||
};
|
};
|
||||||
|
|
||||||
['success', 'warning', 'info', 'error'].forEach(type => {
|
['success', 'warning', 'info', 'error'].forEach(type => {
|
||||||
|
|
Loading…
Reference in New Issue