20260817225227
This commit is contained in:
1 parent
d3acc7d28f
commit
b90ae89b0e
39 files changed
+3861
-353
No files matched your search
@@ -157,7 +157,14 @@ function onContextMenu(event) {
|
||||
event.preventDefault()
|
||||
const { clientX, clientY } = event
|
||||
// 右键在鼠标位置弹出:构造零尺寸锚点矩形,computePosition 的 flip/shift 会兜底防溢出
|
||||
pointAnchor = { left: clientX, top: clientY, width: 0, height: 0, right: clientX, bottom: clientY }
|
||||
pointAnchor = {
|
||||
left: clientX,
|
||||
top: clientY,
|
||||
width: 0,
|
||||
height: 0,
|
||||
right: clientX,
|
||||
bottom: clientY,
|
||||
}
|
||||
if (isOpen.value) {
|
||||
// 已打开时右键到新位置,仅重新定位不重置状态
|
||||
updatePosition()
|
||||
|
||||
Reference in new issue
Block a user