From a1d7e81859f554f3a53680cc35f0f49bf1f77098 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 14 五月 2026 14:37:02 +0800
Subject: [PATCH] 导入项目
---
src/components/DiyEditor/components/mobile/TitleBar/config.ts | 73 ++++++++++++++++++++++++++++++++++++
1 files changed, 73 insertions(+), 0 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/TitleBar/config.ts b/src/components/DiyEditor/components/mobile/TitleBar/config.ts
new file mode 100644
index 0000000..4d2a42e
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/TitleBar/config.ts
@@ -0,0 +1,73 @@
+import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
+
+/** 鏍囬鏍忓睘鎬� */
+export interface TitleBarProperty {
+ // 鑳屾櫙鍥�
+ bgImgUrl: string
+ // 鍋忕Щ
+ marginLeft: number
+ // 鏄剧ず浣嶇疆
+ textAlign: 'left' | 'center'
+ // 涓绘爣棰�
+ title: string
+ // 鍓爣棰�
+ description: string
+ // 鏍囬澶у皬
+ titleSize: number
+ // 鎻忚堪澶у皬
+ descriptionSize: number
+ // 鏍囬绮楃粏
+ titleWeight: number
+ // 鎻忚堪绮楃粏
+ descriptionWeight: number
+ // 鏍囬棰滆壊
+ titleColor: string
+ // 鎻忚堪棰滆壊
+ descriptionColor: string
+ // 楂樺害
+ height: number
+ // 鏌ョ湅鏇村
+ more: {
+ // 鏄惁鏄剧ず鏌ョ湅鏇村
+ show: false
+ // 鏍峰紡閫夋嫨
+ type: 'text' | 'icon' | 'all'
+ // 鑷畾涔夋枃瀛�
+ text: string
+ // 閾炬帴
+ url: string
+ }
+ // 缁勪欢鏍峰紡
+ style: ComponentStyle
+}
+
+// 瀹氫箟缁勪欢
+export const component = {
+ id: 'TitleBar',
+ name: '鏍囬鏍�',
+ icon: 'material-symbols:line-start',
+ property: {
+ title: '涓绘爣棰�',
+ description: '鍓爣棰�',
+ titleSize: 16,
+ descriptionSize: 12,
+ titleWeight: 400,
+ textAlign: 'left',
+ descriptionWeight: 200,
+ titleColor: 'rgba(50, 50, 51, 10)',
+ descriptionColor: 'rgba(150, 151, 153, 10)',
+ marginLeft: 0,
+ height: 40,
+ more: {
+ //鏌ョ湅鏇村
+ show: false,
+ type: 'icon',
+ text: '鏌ョ湅鏇村',
+ url: ''
+ },
+ style: {
+ bgType: 'color',
+ bgColor: '#fff'
+ } as ComponentStyle
+ }
+} as DiyComponent<TitleBarProperty>
--
Gitblit v1.8.0