From bfa094cc8c917c24a278cb59e28d0ef35d3ca672 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 7 Jan 2025 16:41:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8DWindows=E7=B3=BB=E7=BB=9Fedge=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E8=BF=9E=E7=BB=AD=E5=8A=A0=E5=85=A5=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E7=AD=89svg=E7=BB=84=E4=BB=B6=E9=80=A0=E6=88=90?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=8D=A1=E9=A1=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/data-visualization/index.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/data-visualization/index.vue b/core/core-frontend/src/views/data-visualization/index.vue index 494a19b58c..4d5da082c5 100644 --- a/core/core-frontend/src/views/data-visualization/index.vue +++ b/core/core-frontend/src/views/data-visualization/index.vue @@ -100,6 +100,8 @@ let createType = null let isDragging = false // 标记是否在拖动 let startX, startY, scrollLeft, scrollTop const state = reactive({ + sideShow: true, + countTime: 0, datasetTree: [], scaleHistory: null, canvasId: 'canvas-main', @@ -168,6 +170,7 @@ const contentStyle = computed(() => { // 通过实时监听的方式直接添加组件 const handleNew = newComponentInfo => { + state.countTime++ const { componentName, innerType, staticMap } = newComponentInfo if (componentName) { const { width, height, scale } = canvasStyleData.value @@ -191,6 +194,13 @@ const handleNew = newComponentInfo => { dvMainStore.addComponent({ component: component, index: undefined }) adaptCurThemeCommonStyle(component) snapshotStore.recordSnapshotCache('renderChart', component.id) + if (state.countTime > 10) { + state.sideShow = false + nextTick(() => { + state.countTime = 0 + state.sideShow = true + }) + } } } @@ -579,7 +589,7 @@ eventBus.on('tabSort', tabSort)