From 6b99490232e9a88cd96336286cb541a00fbdfe20 Mon Sep 17 00:00:00 2001 From: gladtoeatu Date: Tue, 26 Nov 2024 13:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dblock=E3=80=81template?= =?UTF-8?q?=E5=9C=A8IntrinsicElements=E6=9C=AA=E5=AE=9A=E4=B9=89=E7=9A=84?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复block、template在IntrinsicElements未定义的提示 --- src/types/global.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/types/global.d.ts b/src/types/global.d.ts index c243ef0..2a0a4e7 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -14,3 +14,10 @@ declare const __UNI_PLATFORM__: | 'quickapp-webview-union' declare const __VITE_APP_PROXY__: 'true' | 'false' + +declare namespace JSX { + interface IntrinsicElements { + template: any + block: any + } +}