refactor(数据大屏): 优化过滤组件右键菜单显示位置,防止过滤组件右键菜单偏移太多问题
This commit is contained in:
parent
ddba599c62
commit
fb3fbf339b
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user