Skip to content

Commit

Permalink
修复notification组件,当项目同时存在设置了offset和没设置offset的通知弹窗,导致通知弹窗重叠的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxiaowei committed Aug 12, 2021
1 parent 6fda9a0 commit 420fa6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/notification/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Notification = function(options) {

let verticalOffset = options.offset || 0;
instances.filter(item => item.position === position).forEach(item => {
verticalOffset += item.$el.offsetHeight + 16;
verticalOffset += item.offset + item.$el.offsetHeight + 16;
});
verticalOffset += 16;
instance.verticalOffset = verticalOffset;
Expand Down

0 comments on commit 420fa6b

Please sign in to comment.