diff --git a/src/components/DiyEditor/components/mobile/TitleBar/config.ts b/src/components/DiyEditor/components/mobile/TitleBar/config.ts index 8e87ad0d..4d2a42e3 100644 --- a/src/components/DiyEditor/components/mobile/TitleBar/config.ts +++ b/src/components/DiyEditor/components/mobile/TitleBar/config.ts @@ -1,11 +1,11 @@ -import {ComponentStyle, DiyComponent} from '@/components/DiyEditor/util' +import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util' /** 标题栏属性 */ export interface TitleBarProperty { + // 背景图 + bgImgUrl: string // 偏移 marginLeft: number - // 偏移量 - skew: number // 显示位置 textAlign: 'left' | 'center' // 主标题 @@ -24,6 +24,8 @@ export interface TitleBarProperty { titleColor: string // 描述颜色 descriptionColor: string + // 高度 + height: number // 查看更多 more: { // 是否显示查看更多 @@ -54,7 +56,8 @@ export const component = { descriptionWeight: 200, titleColor: 'rgba(50, 50, 51, 10)', descriptionColor: 'rgba(150, 151, 153, 10)', - skew: 0, + marginLeft: 0, + height: 40, more: { //查看更多 show: false, diff --git a/src/components/DiyEditor/components/mobile/TitleBar/index.vue b/src/components/DiyEditor/components/mobile/TitleBar/index.vue index 93c950e3..8c77d622 100644 --- a/src/components/DiyEditor/components/mobile/TitleBar/index.vue +++ b/src/components/DiyEditor/components/mobile/TitleBar/index.vue @@ -1,57 +1,49 @@ - - +