From 6b988bd582bfcd17fee48c476a5a6e5cc172b0d5 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期三, 12 三月 2025 10:08:33 +0800
Subject: [PATCH] dev-2

---
 src/types/global.d.ts |   81 ++++++++++++++++++++++++++++++++++++++--
 1 files changed, 77 insertions(+), 4 deletions(-)

diff --git a/src/types/global.d.ts b/src/types/global.d.ts
index 130f855..229e181 100644
--- a/src/types/global.d.ts
+++ b/src/types/global.d.ts
@@ -1,10 +1,9 @@
-import type { ComponentInternalInstance as ComponentInstance, PropType as VuePropType } from 'vue';
+import type { PropType as VuePropType, ComponentInternalInstance as ComponentInstance } from 'vue';
+import { LanguageEnum } from '@/enums/LanguageEnum';
 
 declare global {
   /** vue Instance */
   declare type ComponentInternalInstance = ComponentInstance;
-  /**vue */
-  declare type PropType<T> = VuePropType<T>;
 
   /**
    * 鐣岄潰瀛楁闅愯棌灞炴��
@@ -13,7 +12,7 @@
     key: number;
     label: string;
     visible: boolean;
-    children: Array<FieldOption>;
+    children?: Array<FieldOption>;
   }
 
   /**
@@ -48,6 +47,8 @@
     title: string;
     /** 鏄惁绂佺敤涓婁紶 */
     isUploading: boolean;
+
+    updateSupport: number;
 
     /** 鍏朵粬鍙傛暟 */
     [key: string]: any;
@@ -87,5 +88,77 @@
     pageNum: number;
     pageSize: number;
   }
+  declare interface LayoutSetting {
+    /**
+     * 鏄惁鏄剧ず椤堕儴瀵艰埅
+     */
+    topNav: boolean;
+
+    /**
+     * 鏄惁鏄剧ず澶氭爣绛惧鑸�
+     */
+    tagsView: boolean;
+    /**
+     * 鏄惁鍥哄畾澶撮儴
+     */
+    fixedHeader: boolean;
+    /**
+     * 鏄惁鏄剧ず渚ц竟鏍廘ogo
+     */
+    sidebarLogo: boolean;
+    /**
+     * 鏄惁鏄剧ず鍔ㄦ�佹爣棰�
+     */
+    dynamicTitle: boolean;
+    /**
+     * 渚ц竟鏍忎富棰� theme-dark | theme-light
+     */
+    sideTheme: string;
+    /**
+     * 涓婚妯″紡
+     */
+    theme: string;
+  }
+
+  declare interface DefaultSettings extends LayoutSetting {
+    /**
+     * 缃戦〉鏍囬
+     */
+    title: string;
+
+    /**
+     * 鏄惁鏄剧ず绯荤粺甯冨眬璁剧疆
+     */
+    showSettings: boolean;
+
+    /**
+     * 瀵艰埅鏍忓竷灞�
+     */
+    layout: string;
+
+    /**
+     * 甯冨眬澶у皬
+     */
+    size: 'large' | 'default' | 'small';
+
+    /**
+     * 璇█
+     */
+    language: LanguageEnum;
+
+    /**
+     * 鏄惁鍚敤鍔ㄧ敾鏁堟灉
+     */
+    animationEnable: boolean;
+    /**
+     *  鏄惁鍚敤鏆楅粦妯″紡
+     *
+     * true:鏆楅粦妯″紡
+     * false: 鏄庝寒妯″紡
+     */
+    dark: boolean;
+
+    errorLog: string;
+  }
 }
 export {};

--
Gitblit v1.9.3