forked from github/dataease
fix(数据大屏): 修复数据大屏内的tab非首页使用位置编辑器编辑位置可能导致高度准确问题
This commit is contained in:
parent
e80dfb6800
commit
b8b80724f4
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user