mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 12:22:10 +08:00
style: 优化数据大屏组合邮件菜单显示位置 (#17834)
This commit is contained in:
@@ -552,8 +552,13 @@ const handleContextMenu = event => {
|
||||
const curDomId = event.currentTarget?.id
|
||||
if (curDomId) {
|
||||
const curDomSplitParams = curDomId.split('-')
|
||||
if (curDomSplitParams.length > 1 && curDomSplitParams[1] !== 'canvas') {
|
||||
const tabDom = document.getElementById(`shape-id-${curDomSplitParams[1]}`)
|
||||
if (
|
||||
curDomSplitParams.length > 1 &&
|
||||
curDomSplitParams[curDomSplitParams.length - 1] !== 'canvas'
|
||||
) {
|
||||
const tabDom = document.getElementById(
|
||||
`shape-id-${curDomSplitParams[curDomSplitParams.length - 1]}`
|
||||
)
|
||||
if (tabDom) {
|
||||
left = left + tabDom.offsetLeft
|
||||
top = top + tabDom.offsetTop
|
||||
|
||||
Reference in New Issue
Block a user