From 074e89310307e4282a8395a214328bb635fc25e1 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:34:45 +0000 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=AF=BC=E5=85=A5=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=89=A9?= =?UTF-8?q?=E5=B1=95=E5=90=8D=20=E4=BC=9A=E5=AF=BC=E5=85=A5=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E7=B1=BB=E5=9E=8B=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 585759f5..8567c435 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