diff --git a/uni-app/index.md b/uni-app/index.md index 61043a01b4c127e3192b31651a11c42fcf8f2fc8..c381ebbbb796da23620fa33d68ef5305bd24bba7 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 这个依赖,否则无法加载这个插件 :::