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

diff --git a/src/components/DiyEditor/components/mobile/NavigationBar/config.ts b/src/components/DiyEditor/components/mobile/NavigationBar/config.ts
new file mode 100644
index 0000000..4fb5e7c
--- /dev/null
+++ b/src/components/DiyEditor/components/mobile/NavigationBar/config.ts
@@ -0,0 +1,88 @@
+import { DiyComponent } from '@/components/DiyEditor/util'
+
+/** 椤堕儴瀵艰埅鏍忓睘鎬� */
+export interface NavigationBarProperty {
+  // 鑳屾櫙绫诲瀷
+  bgType: 'color' | 'img'
+  // 鑳屾櫙棰滆壊
+  bgColor: string
+  // 鍥剧墖閾炬帴
+  bgImg: string
+  // 鏍峰紡绫诲瀷锛氶粯璁� | 娌夋蹈寮�
+  styleType: 'normal' | 'inner'
+  // 甯搁┗鏄剧ず
+  alwaysShow: boolean
+  // 灏忕▼搴忓崟鍏冩牸鍒楄〃
+  mpCells: NavigationBarCellProperty[]
+  // 鍏跺畠骞冲彴鍗曞厓鏍煎垪琛�
+  otherCells: NavigationBarCellProperty[]
+  // 鏈湴鍙橀噺
+  _local: {
+    // 棰勮椤堕儴瀵艰埅锛堝皬绋嬪簭锛�
+    previewMp: boolean
+    // 棰勮椤堕儴瀵艰埅锛堥潪灏忕▼搴忥級
+    previewOther: boolean
+  }
+}
+
+/** 椤堕儴瀵艰埅鏍� - 鍗曞厓鏍� 灞炴�� */
+export interface NavigationBarCellProperty {
+  // 绫诲瀷锛氭枃瀛� | 鍥剧墖 | 鎼滅储妗�
+  type: 'text' | 'image' | 'search'
+  // 瀹藉害
+  width: number
+  // 楂樺害
+  height: number
+  // 椤堕儴浣嶇疆
+  top: number
+  // 宸︿晶浣嶇疆
+  left: number
+  // 鏂囧瓧鍐呭
+  text: string
+  // 鏂囧瓧棰滆壊
+  textColor: string
+  // 鍥剧墖鍦板潃
+  imgUrl: string
+  // 鍥剧墖閾炬帴
+  url: string
+  // 鎼滅储妗嗭細妗嗕綋棰滆壊
+  backgroundColor: string
+  // 鎼滅储妗嗭細鎻愮ず鏂囧瓧
+  placeholder: string
+  // 鎼滅储妗嗭細鎻愮ず鏂囧瓧浣嶇疆
+  placeholderPosition: string
+  // 鎼滅储妗嗭細鏄惁鏄剧ず鎵竴鎵�
+  showScan: boolean
+  // 鎼滅储妗嗭細杈规鍦嗚鍗婂緞
+  borderRadius: number
+}
+
+// 瀹氫箟缁勪欢
+export const component = {
+  id: 'NavigationBar',
+  name: '椤堕儴瀵艰埅鏍�',
+  icon: 'tabler:layout-navbar',
+  property: {
+    bgType: 'color',
+    bgColor: '#fff',
+    bgImg: '',
+    styleType: 'normal',
+    alwaysShow: true,
+    mpCells: [
+      {
+        type: 'text',
+        textColor: '#111111'
+      }
+    ],
+    otherCells: [
+      {
+        type: 'text',
+        textColor: '#111111'
+      }
+    ],
+    _local: {
+      previewMp: true,
+      previewOther: false
+    }
+  }
+} as DiyComponent<NavigationBarProperty>

--
Gitblit v1.8.0