This commit is contained in:
西瓜°
2026-02-17 17:56:15 +08:00
parent f81d25cc4d
commit 4d6f54e9eb
6 changed files with 23 additions and 25 deletions
@@ -55,11 +55,10 @@ export default defineComponent({
function onResize() {
if (triggerRef.value) {
const { width, height, left, top } = triggerRef.value.getBoundingClientRect()
const zoom = parseFloat(getComputedStyle(document.body).zoom) || 1
dropdownPosition.value = {
w: width / zoom,
x: left / zoom,
y: top / zoom + height / zoom + 2,
w: width,
x: left,
y: top + height + 2,
}
}
}