From 41327b3b5a68c5f8a4f45f8e9be634ac283e8830 Mon Sep 17 00:00:00 2001 From: CodeGyu <545113081@qq.com> Date: Fri, 4 Oct 2024 06:05:48 +0000 Subject: [PATCH] =?UTF-8?q?update=20uni-app/index.md.=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BA=86=E8=A7=86=E9=A2=91=E4=B8=AD=E5=A4=A7=E5=AE=B6=E6=89=80?= =?UTF-8?q?=E9=81=87=E5=88=B0=E7=9A=84=E5=8E=9F=E9=85=8D=E7=BD=AE=20`nativ?= =?UTF-8?q?eTags`=20=E4=B8=8D=E6=94=AF=E6=8C=81=E6=8F=92=E4=BB=B6=20Vue=20?= =?UTF-8?q?-=20Official=202.0.12=20=E4=BB=A5=E4=B8=8A=E7=9A=84=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=8C=E8=B0=83=E6=95=B4=E4=B8=BA=20`"plug?= =?UTF-8?q?ins":=20["@uni-helper/uni-types/volar-plugin"]=20`=E5=88=99?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: CodeGyu <545113081@qq.com> --- uni-app/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uni-app/index.md b/uni-app/index.md index 61043a0..c381ebb 100644 --- a/uni-app/index.md +++ b/uni-app/index.md @@ -320,9 +320,12 @@ npx degit dcloudio/uni-preset-vue#vite-ts 项目名称 }, // vue 编译器类型,校验标签类型 "vueCompilerOptions": { + // 原配置 `nativeTags` 现调整为 `@uni-helper/uni-types/volar-plugin` + "plugins": ["@uni-helper/uni-types/volar-plugin"] // [!code ++] // 原配置 `experimentalRuntimeMode` 现调整为 `nativeTags` - "nativeTags": ["block", "component", "template", "slot"], // [!code ++] + "nativeTags": ["block", "component", "template", "slot"], // [!code --] "experimentalRuntimeMode": "runtime-uni-app" // [!code --] + }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] } @@ -351,6 +354,7 @@ npx degit dcloudio/uni-preset-vue#vite-ts 项目名称 - 原依赖 `@types/wechat-miniprogram` 现调整为 [miniprogram-api-typings](https://github.com/wechat-miniprogram/api-typings)。 - 原配置 `experimentalRuntimeMode` 现调整为 `nativeTags`。 +- 原配置 `nativeTags` 不支持插件 Vue - Official 2.0.12以上的新版本,现调整为 `"plugins": ["@uni-helper/uni-types/volar-plugin"] `则可以支持,并且记得pnpm install -D @uni-helper/uni-types 这个依赖,否则无法加载这个插件 ::: -- Gitee