Merge pull request #3526 from dataease/pr@dev@refactor_panel-drag-tab

refactor(仪表板): 当检测到组件想要移入Tab中的画布时,被拖拽组件图层设置为最高防止被tab组件遮挡
This commit is contained in:
xuwei-fit2cloud 2022-10-31 09:44:47 +08:00 committed by GitHub
commit 9a54d696a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@
[classNameActive]: enabled ,
['linkageSetting']:linkageActive,
['batchSetting']:batchOptActive,
['drag-on-tab-collision']:dragCollision,
['positionChange']:!(dragging || resizing||rotating)
},
className
@ -433,6 +434,9 @@ export default {
}
},
computed: {
dragCollision() {
return this.dragging && Boolean(this.tabCollisionActiveId)
},
parentWidthOffset() {
if (this.canvasId === 'canvas-main') {
return 0
@ -2114,4 +2118,8 @@ export default {
width: 100%;
height: 100%;
}
.drag-on-tab-collision {
z-index: 1000!important;
}
</style>