fix(仪表板): 修复仪表板未显示悬浮按钮问题 (#17362)

This commit is contained in:
王嘉豪
2025-11-05 14:41:22 +08:00
committed by GitHub
parent 6a336fc296
commit 06ce149ba4
3 changed files with 8 additions and 2 deletions

View File

@@ -511,8 +511,7 @@ const dataVPreview = computed(
const linkOptBarShow = computed(() => {
return Boolean(
canvasStyleData.value.suspensionButtonAvailable &&
!inMobile.value &&
!mobileInPc.value &&
((!inMobile.value && !mobileInPc.value) || !isDashboard()) &&
showPopBar.value &&
!isDesktopFlag
)

View File

@@ -42,6 +42,11 @@ const props = defineProps({
type: String,
default: 'preview'
},
// 显示悬浮按钮
showPopBar: {
type: Boolean,
default: false
},
downloadStatus: {
required: false,
type: Boolean,
@@ -133,6 +138,7 @@ defineExpose({
:show-position="showPosition"
:download-status="downloadStatus"
:outer-screen-adaptor="screenAdaptor"
:show-pop-bar="showPopBar"
:show-linkage-button="showLinkageButton"
></de-preview>
</div>

View File

@@ -215,6 +215,7 @@ defineExpose({
:canvas-view-info="state.canvasViewInfoPreview"
:dv-info="state.dvInfo"
:cur-gap="state.curPreviewGap"
:show-pop-bar="true"
:show-linkage-button="false"
:is-selector="props.isSelector"
></de-preview>