Skip to content

Commit

Permalink
fix: vue-popper 在 zoom 情况下无法正常使用、错位
Browse files Browse the repository at this point in the history
  • Loading branch information
renxianyang committed Dec 22, 2024
1 parent 290e68e commit 67e6bd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/vue-popper.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export default {
options.offset = this.offset;
options.arrowOffset = this.arrowOffset;
this.popperJS = new PopperJS(reference, popper, options);
if (this.appendToBody) {
this.popperJS.state.position = 'fixed';
}
this.popperJS.onCreate(_ => {
this.$emit('created', this);
this.resetTransformOrigin();
Expand Down

0 comments on commit 67e6bd0

Please sign in to comment.