From f8ba2fb4d93a33896c2fe4c58c61fa0ac8fcfc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Mon, 20 Jan 2025 17:46:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=BC=B9=E7=AA=97=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=86=85=E7=A6=81=E7=94=A8=E4=B8=8B=E8=BD=BD=20(#1477?= =?UTF-8?q?5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/visualization/ComponentEditBar.vue | 7 +++++-- .../src/components/visualization/UserViewEnlarge.vue | 5 ++--- .../src/store/modules/data-visualization/dvMain.ts | 6 +++++- .../src/views/data-visualization/PreviewCanvas.vue | 5 ++++- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/core/core-frontend/src/components/visualization/ComponentEditBar.vue b/core/core-frontend/src/components/visualization/ComponentEditBar.vue index 8074fca31a..3ccaf5efba 100644 --- a/core/core-frontend/src/components/visualization/ComponentEditBar.vue +++ b/core/core-frontend/src/components/visualization/ComponentEditBar.vue @@ -344,7 +344,8 @@ const { componentData, canvasViewInfo, mobileInPc, - dvInfo + dvInfo, + isIframe } = storeToRefs(dvMainStore) const state = reactive({ @@ -598,7 +599,9 @@ const initCurFields = () => { } } -const showDownload = computed(() => canvasViewInfo.value[element.value.id]?.dataFrom !== 'template') +const showDownload = computed( + () => canvasViewInfo.value[element.value.id]?.dataFrom !== 'template' && !isIframe.value +) // 富文本-End const datasetParamsSetShow = computed(() => { diff --git a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue index bb1fd9c33a..f02e54d5c9 100644 --- a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue +++ b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue @@ -8,7 +8,7 @@ trigger="click" class="userViewEnlarge-class" > -