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/MenuList/config.ts | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/MenuList/config.ts b/src/components/DiyEditor/components/mobile/MenuList/config.ts
new file mode 100644
index 0000000..f96fd0a
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/MenuList/config.ts
@@ -0,0 +1,48 @@
+import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
+import { cloneDeep } from 'lodash-es'
+
+/** 鍒楄〃瀵艰埅灞炴�� */
+export interface MenuListProperty {
+ // 瀵艰埅鑿滃崟鍒楄〃
+ list: MenuListItemProperty[]
+ // 缁勪欢鏍峰紡
+ style: ComponentStyle
+}
+
+/** 鍒楄〃瀵艰埅椤圭洰灞炴�� */
+export interface MenuListItemProperty {
+ // 鍥炬爣閾炬帴
+ iconUrl: string
+ // 鏍囬
+ title: string
+ // 鏍囬棰滆壊
+ titleColor: string
+ // 鍓爣棰�
+ subtitle: string
+ // 鍓爣棰橀鑹�
+ subtitleColor: string
+ // 閾炬帴
+ url: string
+}
+
+export const EMPTY_MENU_LIST_ITEM_PROPERTY = {
+ title: '鏍囬',
+ titleColor: '#333',
+ subtitle: '鍓爣棰�',
+ subtitleColor: '#bbb'
+}
+
+// 瀹氫箟缁勪欢
+export const component = {
+ id: 'MenuList',
+ name: '鍒楄〃瀵艰埅',
+ icon: 'fa-solid:list',
+ property: {
+ list: [cloneDeep(EMPTY_MENU_LIST_ITEM_PROPERTY)],
+ style: {
+ bgType: 'color',
+ bgColor: '#fff',
+ marginBottom: 8
+ } as ComponentStyle
+ }
+} as DiyComponent<MenuListProperty>
--
Gitblit v1.8.0