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 @@
- -
- - - - -
- + +
+ + + + +
+