From 60b412b29c2b159a247d7f7cc3ef5c6fd7e954e0 Mon Sep 17 00:00:00 2001
From: PonyHu <3697820@qq.com>
Date: Tue, 3 Sep 2024 15:14:45 +0800
Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E5=95=86=E5=9F=8E=E8=A3=85=E4=BF=AE?=
=?UTF-8?q?=EF=BC=8C=E7=AC=AC=E4=B8=80=E4=B8=AA=E7=BB=84=E4=BB=B6=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE=E9=AB=98=E5=BA=A6=E5=90=8E=EF=BC=8C=E4=BC=9A=E6=8A=8A?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=83=8C=E6=99=AF=E5=9B=BE=E7=9B=B4=E6=8E=A5?=
=?UTF-8?q?=E6=8A=B5=E4=B8=8B=E6=9D=A5=EF=BC=9B=20fix:=20sheepjs=20?=
=?UTF-8?q?=E4=B8=AD=E5=AF=BC=E8=88=AA=E6=A0=8F=E6=A0=B7=E5=BC=8F=E9=BB=98?=
=?UTF-8?q?=E8=AE=A4=E7=B1=BB=E5=9E=8B=E6=98=AF=20default=EF=BC=8C?=
=?UTF-8?q?=E4=B8=8D=E6=98=AF=20normal;=20fix:=20=E5=95=86=E5=9F=8E?=
=?UTF-8?q?=E8=A3=85=E4=BF=AE=EF=BC=8C=E5=AF=BC=E8=88=AA=E6=A0=8F=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE=E4=B8=BA=E6=B2=89=E6=B5=B8=E5=BC=8F=E7=9A=84=E9=A2=84?=
=?UTF-8?q?=E8=A7=88=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/mobile/NavigationBar/config.ts | 4 +-
.../components/mobile/NavigationBar/index.vue | 5 +-
src/components/DiyEditor/index.vue | 46 ++++++++++++-------
3 files changed, 35 insertions(+), 20 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/NavigationBar/config.ts b/src/components/DiyEditor/components/mobile/NavigationBar/config.ts
index 36612a3f3..440071a6f 100644
--- a/src/components/DiyEditor/components/mobile/NavigationBar/config.ts
+++ b/src/components/DiyEditor/components/mobile/NavigationBar/config.ts
@@ -9,7 +9,7 @@ export interface NavigationBarProperty {
// 图片链接
bgImg: string
// 样式类型:默认 | 沉浸式
- styleType: 'normal' | 'inner'
+ styleType: 'default' | 'inner'
// 常驻显示
alwaysShow: boolean
// 小程序单元格列表
@@ -60,7 +60,7 @@ export const component = {
bgType: 'color',
bgColor: '#fff',
bgImg: '',
- styleType: 'normal',
+ styleType: 'default',
alwaysShow: true,
mpCells: [
{
diff --git a/src/components/DiyEditor/components/mobile/NavigationBar/index.vue b/src/components/DiyEditor/components/mobile/NavigationBar/index.vue
index c684aee71..54ad820a2 100644
--- a/src/components/DiyEditor/components/mobile/NavigationBar/index.vue
+++ b/src/components/DiyEditor/components/mobile/NavigationBar/index.vue
@@ -28,10 +28,13 @@ const props = defineProps<{ property: NavigationBarProperty }>()
// 背景
const bgStyle = computed(() => {
- const background =
+ let background =
props.property.bgType === 'img' && props.property.bgImg
? `url(${props.property.bgImg}) no-repeat top center / 100% 100%`
: props.property.bgColor
+ if (!background && props.property.styleType === 'inner') {
+ background = 'transparent'
+ }
return { background }
})
// 单元格列表
diff --git a/src/components/DiyEditor/index.vue b/src/components/DiyEditor/index.vue
index 700d32bd5..6bf64a7a3 100644
--- a/src/components/DiyEditor/index.vue
+++ b/src/components/DiyEditor/index.vue
@@ -34,20 +34,6 @@