Merge pull request #12572 from dataease/pr@dev-v2@refactor_tab-move

refactor(仪表板、数据大屏): tab内组件支持向上移出
This commit is contained in:
王嘉豪 2024-10-08 17:50:19 +08:00 committed by GitHub
commit 7e3e6d2421
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -521,13 +521,14 @@ const handleMouseDownOnShape = e => {
const left = curX - startX + startLeft
pos['top'] = top
pos['left'] = left
// Tab(30px 30px)
// Tab(30px 30px 30px)
//
// 使curX 使 tab + +
if (
!isMainCanvas(canvasId.value) &&
!isGroupCanvas(canvasId.value) &&
!isGroupArea.value &&
(left < -30 || left + componentWidth - canvasWidth > 30)
(top < -30 || left < -30 || left + componentWidth - canvasWidth > 30)
) {
contentDisplay.value = false
dvMainStore.setMousePointShadowMap({