From 167f708ee69edc52605f436fdadb21da0edf249c Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 21 Nov 2023 11:12:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A4=A7=E5=B1=8F=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=A2=84=E8=A7=88=E7=8A=B6=E6=80=81=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E9=BC=A0=E6=A0=87=E6=AF=94=E4=BE=8B=E4=BC=B8=E7=BC=A9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/ComponentToolBar.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue b/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue index 1ecbad2840..efe0566bfc 100644 --- a/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue +++ b/core/core-frontend/src/components/data-visualization/ComponentToolBar.vue @@ -6,7 +6,7 @@ import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapsho import { changeSizeWithScale } from '@/utils/changeComponentsSizeWithScale' import { useEmitt } from '@/hooks/web/useEmitt' const dvMainStore = dvMainStoreWithOut() -const { canvasStyleData } = storeToRefs(dvMainStore) +const { canvasStyleData, editMode } = storeToRefs(dvMainStore) const snapshotStore = snapshotStoreWithOut() const scale = ref(60) @@ -42,6 +42,9 @@ const reposition = () => { let lastWheelNum = 0 const handleMouseWheel = e => { + if (editMode.value === 'preview') { + return + } let dvMain = document.getElementById('dv-main-center') let dvMainLeftSlide = document.getElementById('dv-main-left-sidebar') let areaLeftWidth = dvMainLeftSlide.clientWidth