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/SearchBar/config.ts |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/src/components/DiyEditor/components/mobile/SearchBar/config.ts b/src/components/DiyEditor/components/mobile/SearchBar/config.ts
new file mode 100644
index 0000000..ef47b27
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/SearchBar/config.ts
@@ -0,0 +1,43 @@
+import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'
+
+/** 鎼滅储妗嗗睘鎬� */
+export interface SearchProperty {
+  height: number // 鎼滅储鏍忛珮搴�
+  showScan: boolean // 鏄剧ず鎵竴鎵�
+  borderRadius: number // 妗嗕綋鏍峰紡
+  placeholder: string // 鍗犱綅鏂囧瓧
+  placeholderPosition: PlaceholderPosition // 鍗犱綅鏂囧瓧浣嶇疆
+  backgroundColor: string // 妗嗕綋棰滆壊
+  textColor: string // 瀛椾綋棰滆壊
+  hotKeywords: string[] // 鐑瘝
+  style: ComponentStyle
+}
+
+// 鏂囧瓧浣嶇疆
+export type PlaceholderPosition = 'left' | 'center'
+
+// 瀹氫箟缁勪欢
+export const component = {
+  id: 'SearchBar',
+  name: '鎼滅储妗�',
+  icon: 'ep:search',
+  property: {
+    height: 28,
+    showScan: false,
+    borderRadius: 0,
+    placeholder: '鎼滅储鍟嗗搧',
+    placeholderPosition: 'left',
+    backgroundColor: 'rgb(238, 238, 238)',
+    textColor: 'rgb(150, 151, 153)',
+    hotKeywords: [],
+    style: {
+      bgType: 'color',
+      bgColor: '#fff',
+      marginBottom: 8,
+      paddingTop: 8,
+      paddingRight: 8,
+      paddingBottom: 8,
+      paddingLeft: 8
+    } as ComponentStyle
+  }
+} as DiyComponent<SearchProperty>

--
Gitblit v1.8.0