Merge pull request #12359 from dataease/pr@dev-v2@fix_tab

fix(数据大屏): 修复数据大屏内的tab非首页使用位置编辑器编辑位置可能导致高度准确问题
This commit is contained in:
王嘉豪 2024-09-20 22:46:54 +08:00 committed by GitHub
commit 3d065ca5dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -332,6 +332,10 @@ const dashboardActive = computed(() => {
return dvInfo.value.type === 'dashboard'
})
const groupCanvasActive = computed(() => {
return isGroupOrTabCanvas(canvasId.value)
})
//
const renderOk = ref(false)
const moveAnimate = ref(false)
@ -1502,7 +1506,11 @@ defineExpose({
:id="mainDomId"
ref="container"
class="editor"
:class="{ edit: isEdit, 'dashboard-editor': dashboardActive }"
:class="{
edit: isEdit,
'dashboard-editor': dashboardActive,
'group-canvas': groupCanvasActive
}"
:style="editStyle"
@contextmenu="handleContextMenu"
>
@ -1650,4 +1658,9 @@ defineExpose({
height: 100%;
}
}
.group-canvas {
width: 100% !important;
height: 100% !important;
}
</style>