From 99fb24a299a22348389c9c2a415efd53bdb31cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E7=97=95?= <614891294@qq.com> Date: Thu, 14 Mar 2024 07:27:56 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=8A=A8=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E7=BB=84=E4=BB=B6=E6=89=A9=E5=B1=95=E5=90=8D=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=85=B6=E4=BB=96=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 天痕 <614891294@qq.com> --- build/vite/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/vite/index.ts b/build/vite/index.ts index 585759f52..8567c4355 100644 --- a/build/vite/index.ts +++ b/build/vite/index.ts @@ -62,6 +62,8 @@ export function createVitePlugins() { Components({ // 生成自定义 `auto-components.d.ts` 全局声明 dts: 'src/types/auto-components.d.ts', + // 扩展名 + extensions: ['vue'], // 自定义组件的解析器 resolvers: [ElementPlusResolver()], globs: ["src/components/**/**.{vue, md}", '!src/components/DiyEditor/components/mobile/**'] -- Gitee