Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve quickstart tips #12606

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading