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 => {