Merge pull request #9688 from dataease/pr@dev-v2@refactor_group-menu

refactor(数据大屏): 优化组合菜单显示,防止组合右键菜单弹出偏移过大
This commit is contained in:
王嘉豪 2024-05-17 09:43:13 +08:00 committed by GitHub
commit cfde56baf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

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