From 67e6bd04d19760d38f6984dd439f4aa16865e8d6 Mon Sep 17 00:00:00 2001 From: renxianyang <15951397@qq.com> Date: Sun, 22 Dec 2024 15:02:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20vue-popper=20=E5=9C=A8=20zoom=20?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E3=80=81=E9=94=99=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/vue-popper.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/vue-popper.js b/src/utils/vue-popper.js index ca35df92b1c..47e925bfc25 100644 --- a/src/utils/vue-popper.js +++ b/src/utils/vue-popper.js @@ -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();