From ea1fe99dfa4f125cb7ff7e31a0513129965d3983 Mon Sep 17 00:00:00 2001
From: pany <939630029@qq.com>
Date: Fri, 29 Nov 2024 10:59:33 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20=E5=B0=86=E8=87=AA=E5=8A=A8=E7=94=9F?=
 =?UTF-8?q?=E6=88=90=E7=9A=84=20.d.ts=20=E6=96=87=E4=BB=B6=E5=BD=92?=
 =?UTF-8?q?=E7=BA=B3=E5=88=B0=20auto=20=E7=9B=AE=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 types/{ => auto}/auto-imports.d.ts | 0
 types/{ => auto}/components.d.ts   | 0
 types/global-directives.d.ts       | 1 -
 vite.config.ts                     | 4 ++--
 4 files changed, 2 insertions(+), 3 deletions(-)
 rename types/{ => auto}/auto-imports.d.ts (100%)
 rename types/{ => auto}/components.d.ts (100%)

diff --git a/types/auto-imports.d.ts b/types/auto/auto-imports.d.ts
similarity index 100%
rename from types/auto-imports.d.ts
rename to types/auto/auto-imports.d.ts
diff --git a/types/components.d.ts b/types/auto/components.d.ts
similarity index 100%
rename from types/components.d.ts
rename to types/auto/components.d.ts
diff --git a/types/global-directives.d.ts b/types/global-directives.d.ts
index 0eb4e2d..6788f00 100644
--- a/types/global-directives.d.ts
+++ b/types/global-directives.d.ts
@@ -5,7 +5,6 @@ export {}
 // 由 app.directive 全局注册的自定义指令需要在这里声明 TS 类型才能获得类型提示
 declare module "vue" {
   export interface ComponentCustomProperties {
-    vLoading: Directive<Element, boolean>
     vPermission: Directive<Element, string[]>
   }
 }
diff --git a/vite.config.ts b/vite.config.ts
index fbaafcf..c3ace6c 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -103,11 +103,11 @@ export default defineConfig(({ mode }) => {
       UnoCSS(),
       // 自动按需导入
       AutoImport({
-        dts: "types/auto-imports.d.ts",
+        dts: "types/auto/auto-imports.d.ts",
         resolvers: [ElementPlusResolver()]
       }),
       Components({
-        dts: "types/components.d.ts",
+        dts: "types/auto/components.d.ts",
         resolvers: [ElementPlusResolver()]
       })
     ],