refactor(数据大屏): 优化组合菜单显示,防止组合右键菜单弹出偏移过大

This commit is contained in:
wangjiahao 2024-05-17 09:41:45 +08:00
parent d9a72fb3a6
commit e75096d95a
2 changed files with 2 additions and 2 deletions

View File

@ -508,7 +508,7 @@ const handleContextMenu = e => {
target = target.parentNode target = target.parentNode
} }
while (!target.className.includes('editor')) { while (!target.className.includes('editor-main')) {
left += target.offsetLeft left += target.offsetLeft
top += target.offsetTop top += target.offsetTop
target = target.parentNode target = target.parentNode

View File

@ -393,7 +393,7 @@ eventBus.on('handleNew', handleNew)
@mouseup="deselectCurComponent" @mouseup="deselectCurComponent"
> >
<canvas-core <canvas-core
class="canvas-area-shadow" class="canvas-area-shadow editor-main"
v-if="state.canvasInitStatus" v-if="state.canvasInitStatus"
ref="mainCanvasCoreRef" ref="mainCanvasCoreRef"
:component-data="componentData" :component-data="componentData"