From 2e21e38cf9f28fdd64e24fc4fa57b70fb97dcaaa Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 25 Jul 2024 16:18:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor(=E6=95=B0=E6=8D=AE=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F):=20=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E8=AE=BE=E7=BD=AE=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 --- .../src/custom-component/common/CommonAttr.vue | 9 +++++++-- .../editor/editor-style/ChartStyleBatchSet.vue | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/custom-component/common/CommonAttr.vue b/core/core-frontend/src/custom-component/common/CommonAttr.vue index c1034964d6..4044854748 100644 --- a/core/core-frontend/src/custom-component/common/CommonAttr.vue +++ b/core/core-frontend/src/custom-component/common/CommonAttr.vue @@ -34,7 +34,7 @@ const props = withDefaults( const { themes, element, showStyle } = toRefs(props) const dvMainStore = dvMainStoreWithOut() -const { dvInfo } = storeToRefs(dvMainStore) +const { dvInfo, batchOptStatus } = storeToRefs(dvMainStore) const activeName = ref(element.value.collapseName) const styleKeys = computed(() => { @@ -53,6 +53,11 @@ const onChange = () => { const isIncludesColor = str => { return str.toLowerCase().includes('color') } + +const positionComponentShow = computed(() => { + return !batchOptStatus.value && !dashboardActive.value +}) + const dashboardActive = computed(() => { return dvInfo.value.type === 'dashboard' }) @@ -123,7 +128,7 @@ const stopEvent = e => {