+
@@ -170,10 +170,15 @@ const position_class = computed(() => (form.value?.indicator_location == 'center
.location-name {
line-height: 3.2rem;
max-width: 15rem;
+ width: 100%;
+ flex-basis: content;
+ flex-shrink: 1;
}
:deep(.el-image) {
width: 100%;
- max-height: 3.2rem;
+ height: 2.8rem;
+ flex-basis: content;
+ flex-shrink: 1;
}
}
}
diff --git a/src/views/layout/components/main/index.vue b/src/views/layout/components/main/index.vue
index 0b1d6f20..83f984f6 100644
--- a/src/views/layout/components/main/index.vue
+++ b/src/views/layout/components/main/index.vue
@@ -167,16 +167,22 @@ watchEffect(() => {
main_content_style.value = padding_computer(new_style.common_style);
- const { immersive_style, up_slide_display } = new_style;
+ const { immersive_style, up_slide_display, data_alone_row_space } = new_style;
// 不开启沉浸式 和 上滑显示
if (immersive_style == '1' || up_slide_display != '1') {
top_padding.value = 0;
+ } else if (content.data_alone_row_value.length > 0) {
+ top_padding.value = 90 + 32 + data_alone_row_space;
} else {
top_padding.value = 90;
}
// 开启沉浸式并且没有开通上滑显示
if (immersive_style == '1' && up_slide_display != '1') {
- top_margin.value = -90;
+ if (content.data_alone_row_value.length > 0) {
+ top_margin.value = -90 - 32 - data_alone_row_space;
+ } else {
+ top_margin.value = -90;
+ }
} else {
top_margin.value = 0;
}