- 页面设置
- 导出
- 导入
- 清空
-
-
-
+
+ 页面设置
+ 导出
+ 导入
+ 清空
+
-
+
+
-
+
@@ -187,11 +186,23 @@ watch(
page_settings();
}
);
+const top_padding = ref(90);
+const top_margin = ref(0);
watchEffect(() => {
- if (props.header.com_data?.content) {
- const content = props.header.com_data?.content;
- const container_common_styles = gradient_computer(content) + background_computer(content);
- content_style.value = container_common_styles;
+ if (page_data.value.com_data) {
+ const { immersive_style, up_slide_display } = page_data.value.com_data.style;
+ // 不开启沉浸式 和 上滑显示
+ if (immersive_style || !up_slide_display) {
+ top_padding.value = 2;
+ } else {
+ top_padding.value = 90;
+ }
+ // 开启沉浸式并且没有开通上滑显示
+ if (immersive_style && !up_slide_display) {
+ top_margin.value = -90;
+ } else {
+ top_margin.value = 0;
+ }
}
});
watch(
@@ -260,7 +271,7 @@ const model_style = computed(() => {
// window.innerHeight(当前页面高度) - 80(顶部高度) - 844
const height = (window.innerHeight - 924) / 2;
let bottom = parseInt(float_bottom[item.id]) + height;
- // 容器自身高度是60 755-60 = 695
+ // 容器自身高度是60 775-60 = 695
if (parseInt(float_bottom[item.id]) > 695) {
bottom = 695 + height;
}
@@ -585,7 +596,7 @@ const float_bottom_change = (val: { bottom: string; location: string }, id: stri
position: absolute;
left: 50%;
margin-left: 26rem;
- top: 4.7rem;
+ top: 0;
display: flex;
flex-direction: column;
gap: 2rem;
@@ -605,7 +616,7 @@ const float_bottom_change = (val: { bottom: string; location: string }, id: stri
height: 100%;
.model-content {
position: relative;
- height: 84.4rem;
+ height: 84.6rem;
.model-bottom {
position: absolute;
bottom: 0;
@@ -623,7 +634,8 @@ const float_bottom_change = (val: { bottom: string; location: string }, id: stri
.model-drag {
overflow-y: auto;
- max-height: 75.5rem;
+ padding-top: 0.2rem;
+ max-height: 84.4rem;
&::-webkit-scrollbar {
display: none;
}
diff --git a/src/layout/components/settings/index.vue b/src/layout/components/settings/index.vue
index f5cddeb9..02cb805a 100644
--- a/src/layout/components/settings/index.vue
+++ b/src/layout/components/settings/index.vue
@@ -3,18 +3,16 @@
- 内容
- 样式
-
-
+
+ 内容
+ 样式
+
{{ value.name }}
-
-
-
+