fix(仪表板): 修复编辑状态预览可能出现编辑框未隐藏问题

This commit is contained in:
wangjiahao 2024-05-23 14:35:49 +08:00
parent 89f6334f62
commit 87abc9261d
2 changed files with 6 additions and 3 deletions

View File

@ -1450,7 +1450,7 @@ defineExpose({
></canvas-opt-bar>
<!-- 网格线 -->
<drag-shadow
v-if="infoBox && infoBox.moveItem"
v-if="infoBox && infoBox.moveItem && editMode !== 'preview'"
:base-height="baseHeight"
:base-width="baseWidth"
:cur-gap="curGap"

View File

@ -269,12 +269,15 @@ onUnmounted(() => {
>
<DbCanvasAttr></DbCanvasAttr>
</dv-sidebar>
<div v-show="viewEditorShow" style="height: 100%">
<div
v-show="viewEditorShow"
style="height: 100%"
:class="{ 'preview-aside': editMode === 'preview' }"
>
<view-editor
:themes="'light'"
:view="canvasViewInfo[curComponent ? curComponent.id : 'default']"
:dataset-tree="state.datasetTree"
:class="{ 'preview-aside': editMode === 'preview' }"
></view-editor>
</div>
<dv-sidebar