fix(数据大屏): 修复数据大屏内的tab非首页使用位置编辑器编辑位置可能导致高度准确问题

This commit is contained in:
wangjiahao 2024-09-20 22:45:17 +08:00
parent e80dfb6800
commit b8b80724f4

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>