fix: vue-popper 在 zoom 情况下无法正常使用、错位

pull/23010/head
renxianyang 2024-12-22 15:02:24 +08:00
parent 290e68ea6a
commit 67e6bd04d1
1 changed files with 3 additions and 0 deletions

View File

@ -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();