Skip to content

Commit

Permalink
docs: improve quickstart tips (#12606)
Browse files Browse the repository at this point in the history
  • Loading branch information
inottn committed Feb 1, 2024
1 parent 10444b5 commit 8cc58ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/vant/docs/markdown/quickstart.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ import 'vant/es/image-preview/style';

- "Full Import" and "On-demand Import" should not be used at the same time, otherwise it will lead to problems such as code duplication and style overrides.
- During use, if the component cannot be imported, because `unplugin-vue-components` is not a plug-in officially maintained by `Vant`, it is recommended to give feedback under the [unplugin/unplugin-vue-components](https://github.com/antfu/unplugin/unplugin-vue-components) repository.

> Tips: when the version number of `unplugin-vue-components` is >= 0.26.0 or above, for `webpack`, `vuecli`, `rspack`, you need to use `ComponentsPlugin.default` to register.
- when the version number of `unplugin-vue-components` is >= 0.26.0, for `webpack`, `vue-cli`, and `rspack`, you need to use `ComponentsPlugin.default` to register.
- `@vant/auto-import-resolver` provides some configuration options. Please refer to the [README document](https://github.com/youzan/vant/tree/main/packages/vant-auto-import-resolver) for more information.
- If it is a similar problem that the style does not take effect, feedback under the `Vant` repository.

Expand Down
4 changes: 1 addition & 3 deletions packages/vant/docs/markdown/quickstart.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@ import 'vant/es/image-preview/style';

- 请避免同时使用「全量引入」和「按需引入」这两种引入方式,否则会导致代码重复、样式错乱等问题。
- 在使用过程中,如果你遇到组件不能导入的问题,因为 unplugin-vue-components 并不是 Vant 官方维护的插件,所以建议到 [unplugin/unplugin-vue-components](https://github.com/unplugin/unplugin-vue-components) 仓库下反馈。

> 提示:`unplugin-vue-components` 在版本号 >= 0.26.0 以上时,对于 `webpack``vuecli``rspack` 的,需要使用 `ComponentsPlugin.default` 进行注册。
-`unplugin-vue-components` 的版本号 >= 0.26.0 时,对于 `webpack``vue-cli``rspack`,你需要使用 `ComponentsPlugin.default` 进行注册。
- `@vant/auto-import-resolver` 提供了一些配置项,请参考 [README 文档](https://github.com/youzan/vant/tree/main/packages/vant-auto-import-resolver) 来了解更多。
- 如果是样式不生效的相关问题,你可以在 Vant 仓库下反馈。

Expand Down

0 comments on commit 8cc58ad

Please sign in to comment.