Skip to content

Commit

Permalink
Merge c400198 into 5390f40
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdaodao authored Nov 2, 2021
2 parents 5390f40 + c400198 commit 3583e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/message/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Message = function(options) {
}
instance.$mount();
document.body.appendChild(instance.$el);
let verticalOffset = options.offset || 20;
let verticalOffset = options.offset === 0 ? options.offset : (options.offset || 20);
instances.forEach(item => {
verticalOffset += item.$el.offsetHeight + 16;
});
Expand Down

0 comments on commit 3583e73

Please sign in to comment.