From 43d663de75da74aae85bc53786860e70a26ea00b Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 6 Sep 2024 15:45:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E3=80=81=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=88=86=E4=BA=AB=E4=BA=8B=E4=BB=B6=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/ComponentWrapper.vue | 2 -- .../data-visualization/canvas/DePreview.vue | 17 ----------------- .../src/custom-component/common/CommonEvent.vue | 2 +- 3 files changed, 1 insertion(+), 20 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue index 170049f462..615e39a033 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue @@ -268,8 +268,6 @@ const onWrapperClick = e => { useEmitt().emitter.emit('componentRefresh') } else if (config.value.events.type === 'fullScreen') { useEmitt().emitter.emit('canvasFullscreen') - } else if (config.value.events.type === 'share') { - useEmitt().emitter.emit('shareComponent') } else if (config.value.events.type === 'download') { useEmitt().emitter.emit('canvasDownload') } diff --git a/core/core-frontend/src/components/data-visualization/canvas/DePreview.vue b/core/core-frontend/src/components/data-visualization/canvas/DePreview.vue index 461216b749..8af776980a 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/DePreview.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/DePreview.vue @@ -18,14 +18,12 @@ import CanvasFilterBtn from '@/custom-component/canvas-filter-btn/Component.vue' import { useEmitt } from '@/hooks/web/useEmitt' import DatasetParamsComponent from '@/components/visualization/DatasetParamsComponent.vue' import DeFullscreen from '@/components/visualization/common/DeFullscreen.vue' -import ShareHandler from '@/views/share/share/ShareHandler.vue' const dvMainStore = dvMainStoreWithOut() const { pcMatrixCount, curComponent, mobileInPc, canvasState } = storeToRefs(dvMainStore) const openHandler = ref(null) const customDatasetParamsRef = ref(null) const emits = defineEmits(['onResetLayout']) const fullScreeRef = ref(null) -const shareComponent = ref(null) const props = defineProps({ canvasStyleData: { type: Object, @@ -201,15 +199,6 @@ useEmitt({ } }) -useEmitt({ - name: 'shareComponent', - callback: function () { - if (isMainCanvas(canvasId.value)) { - shareComponent.value.execute() - } - } -}) - const resetLayout = () => { if (downloadStatus.value) { return @@ -454,12 +443,6 @@ defineExpose({ -