Merge pull request #10356 from dataease/pr@dev-v2@refactor_dv-edit

Pr@dev v2@refactor dv edit
This commit is contained in:
王嘉豪
2024-06-19 10:11:07 +08:00
committed by GitHub
7 changed files with 141 additions and 25 deletions

View File

@@ -4,6 +4,7 @@ import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
const dvMainStore = dvMainStoreWithOut()
import screenfull from 'screenfull'
import { onBeforeUnmount, onMounted, toRefs } from 'vue'
import { useEmitt } from '@/hooks/web/useEmitt'
const props = defineProps({
themes: {
@@ -33,6 +34,10 @@ const fullscreenChange = () => {
dvMainStore.setEditMode('edit')
}
}
// 大屏编辑使用
if (props.showPosition === 'dvEdit') {
useEmitt().emitter.emit('canvasScrollRestore')
}
}
}