refactor(数据大屏): 优化过滤组件右键菜单显示位置,防止过滤组件右键菜单偏移太多问题

This commit is contained in:
wangjiahao 2024-07-25 15:01:20 +08:00
parent ddba599c62
commit fb3fbf339b

View File

@ -526,6 +526,10 @@ const handleContextMenu = e => {
//
if (!curComponent.value || (curComponent.value && !curComponent.value.editing)) {
if (['VQuery'].includes(curComponent.value.component)) {
left = left * curBaseScale.value + 150
top = top * curBaseScale.value + curComponent.value.style.top * (1 - curBaseScale.value)
}
contextmenuStore.showContextMenu({ top, left, position: 'canvasCore' })
const iconDom = document.getElementById('close-button')
if (iconDom) {