From 89b64bed5ad1d1651da98948d2369436e95ca3ff Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 19 May 2025 11:44:05 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20=E5=87=8F=E5=B0=91=E4=BB=AA?= =?UTF-8?q?=E8=A1=A8=E6=9D=BF=E8=AF=B7=E6=B1=82"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 950b25e04a1d40d31fa9ea6d22e5c71b92d6787f. --- .../src/components/dashboard/DbCanvasAttr.vue | 27 +- .../src/components/dashboard/DbToolbar.vue | 84 ++---- .../data-visualization/canvas/CanvasCore.vue | 272 +++++++----------- .../visualization/ComponentGroup.vue | 5 - .../custom-component/de-tabs/Component.vue | 7 +- .../src/custom-component/picture/Attr.vue | 4 + core/core-frontend/src/layout/index.vue | 8 +- core/core-frontend/src/pages/index/App.vue | 14 +- core/core-frontend/src/utils/components.ts | 48 +++- .../core-frontend/src/utils/componentsAttr.ts | 48 ---- .../editor/chart-type/ChartTypeSelect.vue | 104 ------- .../views/chart/components/editor/index.vue | 98 +++++-- .../src/views/common/ComponentStyleEditor.vue | 2 +- .../src/views/dashboard/index.vue | 62 +--- .../src/views/data-visualization/index.vue | 2 +- .../src/views/data-visualization/indexV3.vue | 2 +- 16 files changed, 291 insertions(+), 496 deletions(-) delete mode 100644 core/core-frontend/src/utils/componentsAttr.ts delete mode 100644 core/core-frontend/src/views/chart/components/editor/chart-type/ChartTypeSelect.vue diff --git a/core/core-frontend/src/components/dashboard/DbCanvasAttr.vue b/core/core-frontend/src/components/dashboard/DbCanvasAttr.vue index b80f4d2bb4..8d98c984d5 100644 --- a/core/core-frontend/src/components/dashboard/DbCanvasAttr.vue +++ b/core/core-frontend/src/components/dashboard/DbCanvasAttr.vue @@ -2,7 +2,7 @@ import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot' import { storeToRefs } from 'pinia' -import { nextTick, onMounted, reactive, ref, defineAsyncComponent } from 'vue' +import { nextTick, onMounted, reactive, ref } from 'vue' import { DEFAULT_COLOR_CASE } from '@/views/chart/components/editor/util/chart' import { useI18n } from '@/hooks/web/useI18n' import DeSlider from '@/components/dashboard/subject-setting/pre-subject/Slider.vue' @@ -11,9 +11,11 @@ import ComponentColorSelector from '@/components/dashboard/subject-setting/dashb import { adaptCurThemeCommonStyleAll } from '@/utils/canvasStyle' import ViewSimpleTitle from '@/components/dashboard/subject-setting/dashboard-style/ViewSimpleTitle.vue' import FilterStyleSimpleSelector from '@/components/dashboard/subject-setting/dashboard-style/FilterStyleSimpleSelector.vue' +import BackgroundOverallCommon from '@/components/visualization/component-background/BackgroundOverallCommon.vue' import { deepCopy } from '@/utils/utils' import { useEmitt } from '@/hooks/web/useEmitt' import { merge } from 'lodash-es' +import CanvasBackground from '@/components/visualization/component-background/CanvasBackground.vue' import SeniorStyleSetting from '@/components/dashboard/subject-setting/dashboard-style/SeniorStyleSetting.vue' const dvMainStore = dvMainStoreWithOut() const snapshotStore = snapshotStoreWithOut() @@ -21,31 +23,15 @@ const { canvasStyleData, componentData, canvasViewInfo } = storeToRefs(dvMainSto const { t } = useI18n() let canvasAttrInit = false const canvasAttrActiveNames = ref(['style']) -const BackgroundOverallCommon = defineAsyncComponent( - () => import('@/components/visualization/component-background/BackgroundOverallCommon.vue') -) -const CanvasBackground = defineAsyncComponent( - () => import('@/components/visualization/component-background/CanvasBackground.vue') -) const state = reactive({ colorForm: JSON.parse(JSON.stringify(DEFAULT_COLOR_CASE)), customColor: null, colorIndex: 0, sliderShow: true, - collapseShow: true, - dashboardShow: false, - backgroundShow: false + collapseShow: true }) -const handleChange = val => { - if (val.includes('componentStyle')) { - state.dashboardShow = true - } - if (val.includes('background')) { - state.backgroundShow = true - } -} const onSubjectChange = () => { state.collapseShow = false nextTick(() => { @@ -119,7 +105,7 @@ const saveSelfSubject = () => {