创建uniApp小程序项目vue3+ts+uniapp

vscode创建

sh 复制代码
pnpm i -D @types/wechat-miniprogram @uni-helper/uni-app-types
sh 复制代码
{
	"compilerOptions": {
	"types": [
	"@dcloudio/types",
+	"@types/wechat-miniprogram",
+	"@uni-helper/uni-app-types"
	]
},
+	"vueCompilerOptions": {
+	"nativeTags": ["block", "component", "template", "slot"]
+	}
}