refactor(仪表板、数据大屏): tab内组件支持向上移出

This commit is contained in:
wangjiahao 2024-10-08 17:49:42 +08:00
parent 1b2a2c24d5
commit 9a1c186bc3

View File

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