diff --git a/core/core-frontend/src/components/data-visualization/canvas/DePreview.vue b/core/core-frontend/src/components/data-visualization/canvas/DePreview.vue index 704c5013a0..ab9111f184 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/DePreview.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/DePreview.vue @@ -28,6 +28,7 @@ const openHandler = ref(null) const customDatasetParamsRef = ref(null) const emits = defineEmits(['onResetLayout']) const fullScreeRef = ref(null) +const isOverSize = ref(false) const isDesktopFlag = isDesktop() const props = defineProps({ canvasStyleData: { @@ -286,6 +287,10 @@ const resetLayout = () => { } renderReady.value = true emits('onResetLayout') + isOverSize.value = false + if (previewCanvas.value?.clientHeight - previewCanvas.value?.parentNode?.clientHeight > 0) { + isOverSize.value = true + } } }) } @@ -464,6 +469,7 @@ const linkOptBarShow = computed(() => { const downloadAsPDF = () => { // test } + defineExpose({ restore }) @@ -480,7 +486,7 @@ defineExpose({ v-if="state.initState" > - + - + canvasState.value.curPointArea === 'hidden') const slideOut = () => { offset.value = -slideDistance.value @@ -82,4 +93,8 @@ img { max-width: 100%; max-height: 100%; } + +.filter-btn-fix { + position: fixed !important; +}