mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix(仪表板): 修复仪表板未显示悬浮按钮问题 (#17362)
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user