From 541694c9b20de350925bf28dd10545e47472711e Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 1 May 2025 12:07:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E3=80=91=E5=BA=97=E9=93=BA=E8=A3=85=E4=BF=AE-=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=A0=8F=EF=BC=9A=E4=B9=8B=E5=89=8D=20bgImgUrl=20?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=88=E5=BD=BB?= =?UTF-8?q?=E5=BA=95=E4=BF=AE=E5=A4=8D=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/mobile/TitleBar/config.ts | 11 ++-- .../components/mobile/TitleBar/index.vue | 32 ++++----- .../components/mobile/TitleBar/property.vue | 65 +++++++++++-------- 3 files changed, 58 insertions(+), 50 deletions(-) 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 @@ - - +