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/JsonEditor/types/index.ts |   80 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 80 insertions(+), 0 deletions(-)

diff --git a/src/components/JsonEditor/types/index.ts b/src/components/JsonEditor/types/index.ts
new file mode 100644
index 0000000..b7dadd7
--- /dev/null
+++ b/src/components/JsonEditor/types/index.ts
@@ -0,0 +1,80 @@
+import { JSONEditorOptions, JSONEditorMode } from 'jsoneditor'
+
+export interface JsonEditorProps {
+  /**
+   * JSON鏁版嵁锛屾敮鎸佸弻鍚戠粦瀹�
+   */
+  modelValue: any
+  
+  /**
+   * 缂栬緫鍣ㄦā寮�
+   * @default 'tree'
+   */
+  mode?: JSONEditorMode
+  
+  /**
+   * 缂栬緫鍣ㄩ珮搴�
+   * @default '400px'
+   */
+  height?: string
+  
+  /**
+   * 鏄惁鏄剧ず妯″紡閫夋嫨涓嬫媺鑿滃崟
+   * @default false
+   */
+  showModeSelection?: boolean
+  
+  /**
+   * 鏄惁鏄剧ず瀵艰埅鏍�
+   * @default false
+   */
+  showNavigationBar?: boolean
+  
+  /**
+   * 鏄惁鏄剧ず鐘舵�佹爮
+   * @default true
+   */
+  showStatusBar?: boolean
+  
+  /**
+   * 鏄惁鏄剧ず涓昏彍鍗曟爮
+   * @default true
+   */
+  showMainMenuBar?: boolean
+  
+  /**
+   * JSONEditor閰嶇疆閫夐」
+   * @see https://github.com/josdejong/jsoneditor/blob/develop/docs/api.md
+   */
+  options?: Partial<JSONEditorOptions>
+}
+
+/**
+ * JsonEditor缁勪欢瑙﹀彂鐨勪簨浠�
+ */
+export interface JsonEditorEmits {
+  /**
+   * 鏁版嵁鏇存柊鏃惰Е鍙�
+   */
+  (e: 'update:modelValue', value: any): void
+  
+  /**
+   * 鏁版嵁鍙樺寲鏃惰Е鍙�
+   */
+  (e: 'change', value: any): void
+  
+  /**
+   * 楠岃瘉閿欒鏃惰Е鍙�
+   */
+  (e: 'error', errors: any): void
+}
+
+/**
+ * JsonEditor缁勪欢鏆撮湶鐨勬柟娉�
+ */
+export interface JsonEditorExpose {
+  /**
+   * 鑾峰彇鍘熷鐨凧SONEditor瀹炰緥
+   */
+  getEditor: () => any
+} 

--
Gitblit v1.8.0