From e1023bb3313282b00d6dcdefd5d7e30d7aaa1bfc Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期四, 30 十一月 2023 11:13:29 +0800
Subject: [PATCH] update 优化 代码中存在的警告

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

diff --git a/src/types/global.d.ts b/src/types/global.d.ts
index 81bc816..32081bf 100644
--- a/src/types/global.d.ts
+++ b/src/types/global.d.ts
@@ -1,83 +1,91 @@
-import { FormRules } from 'element-plus';
+import type { ComponentInternalInstance as ComponentInstance, PropType as VuePropType } from 'vue';
+
 declare global {
-	/**
-	 * 鐣岄潰瀛楁闅愯棌灞炴��
-	 */
-	interface FieldOption {
-		key: number;
-		label: string;
-		visible: boolean;
-	}
+  /** vue Instance */
+  declare type ComponentInternalInstance = ComponentInstance;
+  /**vue */
+  declare type PropType<T> = VuePropType<T>;
 
-	/**
-	 * 寮圭獥灞炴��
-	 */
-	interface DialogOption {
-		/**
-		 * 寮圭獥鏍囬
-		 */
-		title?: string;
-		/**
-		 * 鏄惁鏄剧ず
-		 */
-		visible: boolean;
-	}
+  /**
+   * 鐣岄潰瀛楁闅愯棌灞炴��
+   */
+  declare interface FieldOption {
+    key: number;
+    label: string;
+    visible: boolean;
+    children?: Array<FieldOption>;
+  }
 
-	interface UploadOption {
-		/** 璁剧疆涓婁紶鐨勮姹傚ご閮� */
-		headers: { [key: string]: any };
+  /**
+   * 寮圭獥灞炴��
+   */
+  declare interface DialogOption {
+    /**
+     * 寮圭獥鏍囬
+     */
+    title?: string;
+    /**
+     * 鏄惁鏄剧ず
+     */
+    visible: boolean;
+  }
 
-		/** 涓婁紶鐨勫湴鍧� */
-		url: string;
-	}
+  declare interface UploadOption {
+    /** 璁剧疆涓婁紶鐨勮姹傚ご閮� */
+    headers: { [key: string]: any };
 
-	/**
-	 * 瀵煎叆灞炴��
-	 */
-	interface ImportOption extends UploadOption {
-		/** 鏄惁鏄剧ず寮瑰嚭灞� */
-		open: boolean;
-		/** 寮瑰嚭灞傛爣棰� */
-		title: string;
-		/** 鏄惁绂佺敤涓婁紶 */
-		isUploading: boolean;
+    /** 涓婁紶鐨勫湴鍧� */
+    url: string;
+  }
 
-		/** 鍏朵粬鍙傛暟 */
-		[key: string]: any;
-	}
-	/**
-	 * 瀛楀吀鏁版嵁  鏁版嵁閰嶇疆
-	 */
-	interface DictDataOption {
-		label: string;
-		value: string;
-		elTagType?: ElTagType;
-		elTagClass?: string;
-	}
+  /**
+   * 瀵煎叆灞炴��
+   */
+  declare interface ImportOption extends UploadOption {
+    /** 鏄惁鏄剧ず寮瑰嚭灞� */
+    open: boolean;
+    /** 寮瑰嚭灞傛爣棰� */
+    title: string;
+    /** 鏄惁绂佺敤涓婁紶 */
+    isUploading: boolean;
 
-	interface BaseEntity {
-		createBy?: any;
-		createTime?: string;
-		updateBy?: any;
-		updateTime?: any;
-	}
+    /** 鍏朵粬鍙傛暟 */
+    [key: string]: any;
+  }
+  /**
+   * 瀛楀吀鏁版嵁  鏁版嵁閰嶇疆
+   */
+  declare interface DictDataOption {
+    label: string;
+    value: string;
+    elTagType?: ElTagType;
+    elTagClass?: string;
+  }
 
-	/**
-	 * 鍒嗛〉鏁版嵁
-	 * T : 琛ㄥ崟鏁版嵁
-	 * D : 鏌ヨ鍙傛暟
-	 */
-	interface PageData<T, D> {
-		form: T;
-		queryParams: D;
-		rules: FormRules;
-	}
-	/**
-	 * 鍒嗛〉鏌ヨ鍙傛暟
-	 */
-	interface PageQuery {
-		pageNum: number;
-		pageSize: number;
-	}
+  declare interface BaseEntity {
+    createBy?: any;
+    createDept?: any;
+    createTime?: string;
+    updateBy?: any;
+    updateTime?: any;
+  }
+
+  /**
+   * 鍒嗛〉鏁版嵁
+   * T : 琛ㄥ崟鏁版嵁
+   * D : 鏌ヨ鍙傛暟
+   */
+  declare interface PageData<T, D> {
+    form: T;
+    queryParams: D;
+    rules: ElFormRules;
+  }
+  /**
+   * 鍒嗛〉鏌ヨ鍙傛暟
+   */
+  declare interface PageQuery {
+    pageNum: number;
+    pageSize: number;
+  }
 }
 export {};

--
Gitblit v1.9.3