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/HotZone/config.ts | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
diff --git a/src/components/DiyEditor/components/mobile/HotZone/config.ts b/src/components/DiyEditor/components/mobile/HotZone/config.ts
new file mode 100644
index 0000000..80ed855
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/HotZone/config.ts
@@ -0,0 +1,43 @@
+import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
+
+/** 鐑尯灞炴�� */
+export interface HotZoneProperty {
+ // 鍥剧墖鍦板潃
+ imgUrl: string
+ // 瀵艰埅鑿滃崟鍒楄〃
+ list: HotZoneItemProperty[]
+ // 缁勪欢鏍峰紡
+ style: ComponentStyle
+}
+
+/** 鐑尯椤圭洰灞炴�� */
+export interface HotZoneItemProperty {
+ // 閾炬帴鐨勫悕绉�
+ name: string
+ // 閾炬帴
+ url: string
+ // 瀹�
+ width: number
+ // 楂�
+ height: number
+ // 涓�
+ top: number
+ // 宸�
+ left: number
+}
+
+// 瀹氫箟缁勪欢
+export const component = {
+ id: 'HotZone',
+ name: '鐑尯',
+ icon: 'tabler:hand-click',
+ property: {
+ imgUrl: '',
+ list: [] as HotZoneItemProperty[],
+ style: {
+ bgType: 'color',
+ bgColor: '#fff',
+ marginBottom: 8
+ } as ComponentStyle
+ }
+} as DiyComponent<HotZoneProperty>
--
Gitblit v1.8.0