Skip to content

Commit

Permalink
perf: 将自动生成的 .d.ts 文件归纳到 auto 目录
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Nov 29, 2024
1 parent fd075bd commit ea1fe99
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion types/global-directives.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export {}
// 由 app.directive 全局注册的自定义指令需要在这里声明 TS 类型才能获得类型提示
declare module "vue" {
export interface ComponentCustomProperties {
vLoading: Directive<Element, boolean>
vPermission: Directive<Element, string[]>
}
}
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
})
],
Expand Down

0 comments on commit ea1fe99

Please sign in to comment.