forked from github/dataease
refactor: 大屏编辑预览状态禁用鼠标比例伸缩功能
This commit is contained in:
parent
59c6793b04
commit
167f708ee6
@ -6,7 +6,7 @@ import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapsho
|
|||||||
import { changeSizeWithScale } from '@/utils/changeComponentsSizeWithScale'
|
import { changeSizeWithScale } from '@/utils/changeComponentsSizeWithScale'
|
||||||
import { useEmitt } from '@/hooks/web/useEmitt'
|
import { useEmitt } from '@/hooks/web/useEmitt'
|
||||||
const dvMainStore = dvMainStoreWithOut()
|
const dvMainStore = dvMainStoreWithOut()
|
||||||
const { canvasStyleData } = storeToRefs(dvMainStore)
|
const { canvasStyleData, editMode } = storeToRefs(dvMainStore)
|
||||||
const snapshotStore = snapshotStoreWithOut()
|
const snapshotStore = snapshotStoreWithOut()
|
||||||
const scale = ref(60)
|
const scale = ref(60)
|
||||||
|
|
||||||
@ -42,6 +42,9 @@ const reposition = () => {
|
|||||||
let lastWheelNum = 0
|
let lastWheelNum = 0
|
||||||
|
|
||||||
const handleMouseWheel = e => {
|
const handleMouseWheel = e => {
|
||||||
|
if (editMode.value === 'preview') {
|
||||||
|
return
|
||||||
|
}
|
||||||
let dvMain = document.getElementById('dv-main-center')
|
let dvMain = document.getElementById('dv-main-center')
|
||||||
let dvMainLeftSlide = document.getElementById('dv-main-left-sidebar')
|
let dvMainLeftSlide = document.getElementById('dv-main-left-sidebar')
|
||||||
let areaLeftWidth = dvMainLeftSlide.clientWidth
|
let areaLeftWidth = dvMainLeftSlide.clientWidth
|
||||||
|
Loading…
Reference in New Issue
Block a user