From 79ee077d09c672d830ab6ad54ca0cf8d1408bc27 Mon Sep 17 00:00:00 2001 From: pany Date: Mon, 2 Dec 2024 17:01:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E6=96=87=E4=BB=B6=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/global-components.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 types/global-components.d.ts diff --git a/types/global-components.d.ts b/types/global-components.d.ts new file mode 100644 index 00000000..d19a5310 --- /dev/null +++ b/types/global-components.d.ts @@ -0,0 +1,10 @@ +import type SvgIcon from "@@/components/SvgIcon/index.vue" + +export {} + +// 由 app.component 全局注册的组件需要在这里声明 TS 类型才能获得 Volar 插件提供的类型提示) +declare module "vue" { + export interface GlobalComponents { + SvgIcon: typeof SvgIcon + } +}