From 8568985a095a0aaee592697a0a7cefd5da635f2e Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Fri, 6 Oct 2023 08:29:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E6=B7=B7=E5=90=88=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=EF=BC=8Ctag-menu=20=E7=9A=84=20y=20=E8=BD=B4=E5=9D=90?= =?UTF-8?q?=E6=A0=87=E9=9C=80=E8=A6=81=E5=87=8F=E5=8E=BB=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E8=8F=9C=E5=8D=95(fixed)=E7=9A=84=E9=AB=98=E5=BA=A650px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 3e5848f66919ee4c8e31378128ce356930ff7a03 --- src/layout/components/TagsView/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 81f70cb2..1cd4fa9d 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -220,7 +220,13 @@ function openTagMenu(tag: TagView, e: MouseEvent) { left.value = l; } - top.value = e.clientY; + // 混合模式下,需要减去顶部菜单(fixed)的高度 + if (layout.value === "mix") { + top.value = e.clientY - 50; + } else { + top.value = e.clientY; + } + tagMenuVisible.value = true; selectedTag.value = tag; }