diff --git a/core/core-frontend/src/custom-component/common/CommonAttr.vue b/core/core-frontend/src/custom-component/common/CommonAttr.vue index 821b9ecdc6..71ce524ce2 100644 --- a/core/core-frontend/src/custom-component/common/CommonAttr.vue +++ b/core/core-frontend/src/custom-component/common/CommonAttr.vue @@ -94,7 +94,12 @@ const tabTitleShow = computed(() => { }) const styleShow = computed(() => { - return element.value && element.value.style && element.value.component !== 'DeTabs' + return ( + element.value && + element.value.style && + element.value.component !== 'DeTabs' && + Object.keys(element.value.style).length > 0 + ) }) onMounted(() => { diff --git a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts index 0154481963..1057a7e944 100644 --- a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts +++ b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts @@ -643,7 +643,11 @@ export const dvMainStore = defineStore('dataVisualization', { if (this.batchOptComponentType !== 'UserView') { this.batchOptComponentInfo = { collapseName: 'background', - commonBackground: deepCopy(COMMON_COMPONENT_BACKGROUND_BASE), + commonBackground: deepCopy( + this.curOriginThemes === 'light' + ? COMMON_COMPONENT_BACKGROUND_LIGHT + : COMMON_COMPONENT_BACKGROUND_DARK + ), style: {} } @@ -678,7 +682,11 @@ export const dvMainStore = defineStore('dataVisualization', { } else { this.batchOptComponentInfo = { collapseName: 'background', - commonBackground: deepCopy(COMMON_COMPONENT_BACKGROUND_BASE), + commonBackground: deepCopy( + this.curOriginThemes === 'light' + ? COMMON_COMPONENT_BACKGROUND_LIGHT + : COMMON_COMPONENT_BACKGROUND_DARK + ), style: {} } this.mixPropertiesInner['common-style']?.forEach(styleKey => { diff --git a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue index f6aa204065..b2869310bf 100644 --- a/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue +++ b/core/core-frontend/src/views/dashboard/MobileConfigPanel.vue @@ -371,6 +371,7 @@ const save = () => { .mobile-config-panel { height: 100vh; width: 100vw; + overflow: hidden; position: relative; background: #f5f6f7;