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/NoticeBar/config.ts | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/NoticeBar/config.ts b/src/components/DiyEditor/components/mobile/NoticeBar/config.ts
new file mode 100644
index 0000000..b6b0860
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/NoticeBar/config.ts
@@ -0,0 +1,46 @@
+import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
+
+/** 鍏憡鏍忓睘鎬� */
+export interface NoticeBarProperty {
+ // 鍥炬爣鍦板潃
+ iconUrl: string
+ // 鍏憡鍐呭鍒楄〃
+ contents: NoticeContentProperty[]
+ // 鑳屾櫙棰滆壊
+ backgroundColor: string
+ // 鏂囧瓧棰滆壊
+ textColor: string
+ // 缁勪欢鏍峰紡
+ style: ComponentStyle
+}
+
+/** 鍐呭灞炴�� */
+export interface NoticeContentProperty {
+ // 鍐呭鏂囧瓧
+ text: string
+ // 閾炬帴鍦板潃
+ url: string
+}
+
+// 瀹氫箟缁勪欢
+export const component = {
+ id: 'NoticeBar',
+ name: '鍏憡鏍�',
+ icon: 'ep:bell',
+ property: {
+ iconUrl: 'http://mall.yudao.iocoder.cn/static/images/xinjian.png',
+ contents: [
+ {
+ text: '',
+ url: ''
+ }
+ ],
+ backgroundColor: '#fff',
+ textColor: '#333',
+ style: {
+ bgType: 'color',
+ bgColor: '#fff',
+ marginBottom: 8
+ } as ComponentStyle
+ }
+} as DiyComponent<NoticeBarProperty>
--
Gitblit v1.8.0