图片建议宽高80*80,鼠标拖拽左侧圆点可调整导航顺序
@@ -56,12 +59,18 @@
-
+
diff --git a/src/components/page-settings/index.vue b/src/components/page-settings/index.vue
index 4d39cd0f..2442b486 100644
--- a/src/components/page-settings/index.vue
+++ b/src/components/page-settings/index.vue
@@ -128,7 +128,7 @@ const position_class = computed(() => (form.value?.indicator_location == 'center
transform: translateX(-50%);
width: 39rem;
.roll {
- padding-bottom: 0.9rem;
+ padding-bottom: 1rem;
margin: 0 auto;
cursor: pointer;
z-index: 1;
@@ -154,11 +154,19 @@ const position_class = computed(() => (form.value?.indicator_location == 'center
}
}
.page-settings-border {
- // border: 0.2rem solid $cr-main;
position: relative;
- box-shadow: 0px 0 0px 0.2rem $cr-main !important;
z-index: 3;
box-sizing: border-box;
+ &::before {
+ content: '';
+ height: 100%;
+ width: calc(100% + 0.4rem);
+ position: absolute;
+ left: -0.2rem;
+ right: -0.2rem;
+ border: 0.2rem solid $cr-main;
+ z-index: 2;
+ }
}
.logo-outer-style {
height: 2.8rem;
diff --git a/src/config/const/header-nav.ts b/src/config/const/header-nav.ts
index 2bec8eeb..10ff24af 100644
--- a/src/config/const/header-nav.ts
+++ b/src/config/const/header-nav.ts
@@ -78,7 +78,7 @@ const defaultFooterNav: DefaultFooterNav = {
is_icon_show: '1',
icon_link: {},
icon_img: [],
- icon_class: '',
+ icon_class: 'search',
search_botton_img: [],
search_botton_icon: '',
is_tips_show: '1',
diff --git a/src/views/layout/components/main/index.scss b/src/views/layout/components/main/index.scss
index 346d12d3..ee4c66cd 100644
--- a/src/views/layout/components/main/index.scss
+++ b/src/views/layout/components/main/index.scss
@@ -89,15 +89,24 @@
.model-drag {
overflow-y: auto;
- padding-top: 0.2rem;
+ // padding-top: 0.2rem;
max-height: 84.4rem;
height: 100%;
&::-webkit-scrollbar {
display: none;
}
+ .page-bg {
+ position: absolute;
+ left: 50;
+ background: #f5f5f5;
+ top: 0;
+ left: 50%;
+ transform: translateX(-50%);
+ width: 39rem;
+ min-height: 100%;
+ }
.model-wall {
width: 39rem;
- background: #f5f5f5;
margin: 0 auto;
min-height: 100%;
display: flex;
@@ -194,7 +203,8 @@
transform: translateY(-50%);
left: 0;
z-index: 3;
- .layout-toggle-bar-top, .layout-toggle-bar-bottom {
+ .layout-toggle-bar-top,
+ .layout-toggle-bar-bottom {
position: absolute;
width: 0.2rem;
border-radius: 0.2rem;
@@ -208,7 +218,8 @@
}
}
.layout-toggle-bar-close:hover {
- .layout-toggle-bar-top, .layout-toggle-bar-bottom {
+ .layout-toggle-bar-top,
+ .layout-toggle-bar-bottom {
background: $cr-main;
transition: 1s ease;
}
@@ -221,7 +232,8 @@
}
.layout-toggle-bar-open:hover {
- .layout-toggle-bar-top, .layout-toggle-bar-bottom {
+ .layout-toggle-bar-top,
+ .layout-toggle-bar-bottom {
background: $cr-main;
transition: 1s ease;
}
@@ -255,4 +267,4 @@
.layout-toggle-bar {
display: none;
}
-}
\ No newline at end of file
+}
diff --git a/src/views/layout/components/main/index.vue b/src/views/layout/components/main/index.vue
index 1ae50ce3..7611ee88 100644
--- a/src/views/layout/components/main/index.vue
+++ b/src/views/layout/components/main/index.vue
@@ -63,10 +63,13 @@
+
-
-
+
+
@@ -146,6 +149,7 @@ watch(
);
const top_padding = ref(90);
const top_margin = ref(0);
+const model_wall_top = ref(0);
const content_style = ref('');
const content_img_style = ref('');
const main_content_style = ref('');
@@ -166,7 +170,7 @@ watchEffect(() => {
const { immersive_style, up_slide_display } = new_style;
// 不开启沉浸式 和 上滑显示
if (immersive_style == '1' || up_slide_display != '1') {
- top_padding.value = 2;
+ top_padding.value = 0;
} else {
top_padding.value = 90;
}
@@ -214,7 +218,7 @@ const show_model_border = ref(true);
// 点击添加tabs组件
const draggable_click = (item: componentsData) => {
const type_data = ['tabs', 'tabs-carousel'];
-
+
if (common_store.is_immersion_model) {
ElMessage.error('开启沉浸样式下不可以添加该组件');
return;
@@ -432,7 +436,7 @@ const scroll = () => {
const scoll_top = ref(0);
const on_scroll_event = (e: any) => {
scoll_top.value = e.target.scrollTop;
-}
+};
//#endregion
//#region 页面设置 导出 导入
// 在组件挂载时默认执行