docs: update the URL of unplugin-vue-components

This commit is contained in:
chenjiahan
2023-09-03 09:10:27 +08:00
parent 0e1874d689
commit d1538c3489
6 changed files with 8 additions and 8 deletions
@@ -127,7 +127,7 @@ Vant 支持多种组件注册方式,除了在 app 上全局注册组件,你
### 方法二. 按需引入组件样式
在基于 `vite``webpack``vue-cli` 的项目中使用 Vant 时,可以使用 [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components) 插件,它可以自动引入组件。
在基于 `vite``webpack``vue-cli` 的项目中使用 Vant 时,可以使用 [unplugin-vue-components](https://github.com/unplugin/unplugin-vue-components) 插件,它可以自动引入组件。
Vant 官方基于 `unplugin-vue-components` 提供了自动导入样式的解析器 [@vant/auto-import-resolver](https://github.com/youzan/vant/tree/main/packages/auto-import-resolver),两者可以配合使用。
@@ -237,7 +237,7 @@ import 'vant/es/image-preview/style';
#### 使用提示
- 请避免同时使用「全量引入」和「按需引入」这两种引入方式,否则会导致代码重复、样式错乱等问题。
- 在使用过程中,如果你遇到组件不能导入的问题,因为 unplugin-vue-components 并不是 Vant 官方维护的插件,所以建议到 [antfu/unplugin-vue-components](https://github.com/antfu/unplugin-vue-components) 仓库下反馈。
- 在使用过程中,如果你遇到组件不能导入的问题,因为 unplugin-vue-components 并不是 Vant 官方维护的插件,所以建议到 [unplugin/unplugin-vue-components](https://github.com/unplugin/unplugin-vue-components) 仓库下反馈。
- 如果是样式不生效的相关问题,你可以在 Vant 仓库下反馈。
## 在框架中使用