-
-
-
-
- 全屏
+
diff --git a/core/core-frontend/src/views/data-visualization/PreviewShow.vue b/core/core-frontend/src/views/data-visualization/PreviewShow.vue
index 3bacf2aac0..a329bbd356 100644
--- a/core/core-frontend/src/views/data-visualization/PreviewShow.vue
+++ b/core/core-frontend/src/views/data-visualization/PreviewShow.vue
@@ -15,10 +15,9 @@ import { useMoveLine } from '@/hooks/web/useMoveLine'
import { Icon } from '@/components/icon-custom'
import { download2AppTemplate, downloadCanvas2 } from '@/utils/imgUtils'
import MultiplexPreviewShow from '@/views/data-visualization/MultiplexPreviewShow.vue'
-import screenfull from 'screenfull'
const dvMainStore = dvMainStoreWithOut()
-const { dvInfo } = storeToRefs(dvMainStore)
+const { dvInfo, fullscreenFlag } = storeToRefs(dvMainStore)
const previewCanvasContainer = ref(null)
const dvPreview = ref(null)
const slideShow = ref(true)
@@ -27,7 +26,6 @@ const permissionStore = usePermissionStoreWithOut()
const dataInitState = ref(true)
const downloadStatus = ref(false)
const { width, node } = useMoveLine('DASHBOARD')
-const fullscreenFlag = ref(false)
const props = defineProps({
showPosition: {
required: false,
@@ -102,13 +100,6 @@ const download = type => {
}, 200)
}
-const fullscreenPreview = () => {
- const ele = document.getElementById('de-preview-content') //指定全屏区域元素
- if (screenfull.isEnabled) {
- screenfull.request(ele)
- }
-}
-
const downloadAsAppTemplate = downloadType => {
downloadStatus.value = true
nextTick(() => {
@@ -212,7 +203,6 @@ onBeforeMount(() => {
@reload="reload"
@download="download"
@downloadAsAppTemplate="downloadAsAppTemplate"
- @fullscreenPreview="fullscreenPreview"
/>
{
>
-
+