mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Notification: improve offset attribute doc
This commit is contained in:
@@ -25,8 +25,8 @@ var Notification = function(options) {
|
||||
instance.dom = instance.vm.$el;
|
||||
instance.dom.style.zIndex = PopupManager.nextZIndex();
|
||||
|
||||
const origin = options.origin || 0;
|
||||
let topDist = origin;
|
||||
const offset = options.offset || 0;
|
||||
let topDist = offset;
|
||||
for (let i = 0, len = instances.length; i < len; i++) {
|
||||
topDist += instances[i].$el.offsetHeight + 16;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user