From ba5b72b0227aa4ba1c3fcf187468f3ded84af658 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Sun, 3 Nov 2024 21:29:12 +0800 Subject: [PATCH] =?UTF-8?q?style(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E7=BC=96=E8=BE=91=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-visualization/canvas/Shape.vue | 1 - .../components/LegendSelector.vue | 2 +- .../src/views/dashboard/MobileConfigPanel.vue | 11 +-------- .../src/views/mobile/panel/index.vue | 24 ++++++------------- 4 files changed, 9 insertions(+), 29 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue index 360bda280c..da1d654e8b 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue @@ -298,7 +298,6 @@ const showCheck = computed(() => { }) const updateFromMobile = (e, type) => { - console.log('====updateFromMobile===' + type) if (type === 'syncPcDesign') { e.preventDefault() e.stopPropagation() diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue index cc50167c3c..143a27cee2 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue @@ -283,7 +283,7 @@ onMounted(() => { - +
diff --git a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue index 6260875fc6..f2c15a1b7a 100644 --- a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue +++ b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue @@ -129,7 +129,7 @@ const hanedleMessage = event => { targetViewInfo = deepCopy(sourceViewInfo) targetViewInfo.customStyleMobile = null targetViewInfo.customAttrMobile = null - canvasViewInfoMobile[targetComponent.id] = targetViewInfo + canvasViewInfoMobile.value[targetComponent.id] = targetViewInfo } snapshotStore.recordSnapshotCacheToMobile('syncPcDesign', targetComponent, targetViewInfo) } @@ -154,19 +154,10 @@ const hanedleMessage = event => { ele.propValue.forEach(tabItem => { tabItem.componentData.forEach(tabComponent => { const { - x: tx, - y: ty, - sizeX: tSizeX, - sizeY: tSizeY, - style: tStyle, propValue: tPropValue, events: tEvents, commonBackground: tCommonBackground } = com.tab[tabComponent.id] - tabComponent.mx = tx - tabComponent.my = ty - tabComponent.mSizeX = tSizeX - tabComponent.mSizeY = tSizeY tabComponent.mStyle = tStyle tabComponent.mEvents = tEvents tabComponent.mCommonBackground = tCommonBackground diff --git a/core/core-frontend/src/views/mobile/panel/index.vue b/core/core-frontend/src/views/mobile/panel/index.vue index 79f525ca93..4db426bbd8 100644 --- a/core/core-frontend/src/views/mobile/panel/index.vue +++ b/core/core-frontend/src/views/mobile/panel/index.vue @@ -39,28 +39,18 @@ const hanedleMessage = event => { ele.propValue.forEach(tabItem => { tabItem.componentData.forEach(tabComponent => { const { - mx: tx, - my: ty, - mSizeX: tSizeX, - mSizeY: tSizeY, mStyle: tStyle, mCommonBackground: tCommonBackground, mEvents: tEvents, mPropValue: tPropValue } = tabComponent - if (tSizeX && tSizeY) { - tabComponent.x = tx - tabComponent.y = ty - tabComponent.sizeX = tSizeX - tabComponent.sizeY = tSizeY - tabComponent.style = deepCopy(tStyle || tabComponent.style) - tabComponent.commonBackground = deepCopy( - tCommonBackground || tabComponent.commonBackground - ) - tabComponent.events = deepCopy(tEvents || tabComponent.events) - if (tabComponent.component === 'VQuery') { - tabComponent.propValue = deepCopy(tPropValue || tabComponent.propValue) - } + tabComponent.style = deepCopy(tStyle || tabComponent.style) + tabComponent.commonBackground = deepCopy( + tCommonBackground || tabComponent.commonBackground + ) + tabComponent.events = deepCopy(tEvents || tabComponent.events) + if (tabComponent.component === 'VQuery') { + tabComponent.propValue = deepCopy(tPropValue || tabComponent.propValue) } }) })