docs(auto-import-resolver): add doc for importStyle option (#12382)

* docs(auto-import-resolver): add doc for importStyle option

* docs: upd
This commit is contained in:
neverland
2023-10-22 21:30:40 +08:00
committed by GitHub
parent 86688394d2
commit cc9aced041
4 changed files with 47 additions and 3 deletions
@@ -217,7 +217,8 @@ 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.
- If it is a similar problem that the style does not take effect, feedback under the `Vant` repository
- `@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.
## With Frameworks
@@ -238,6 +238,7 @@ import 'vant/es/image-preview/style';
- 请避免同时使用「全量引入」和「按需引入」这两种引入方式,否则会导致代码重复、样式错乱等问题。
- 在使用过程中,如果你遇到组件不能导入的问题,因为 unplugin-vue-components 并不是 Vant 官方维护的插件,所以建议到 [unplugin/unplugin-vue-components](https://github.com/unplugin/unplugin-vue-components) 仓库下反馈。
- `@vant/auto-import-resolver` 提供了一些配置项,请参考 [README 文档](<(https://github.com/youzan/vant/tree/main/packages/vant-auto-import-resolver)>) 来了解更多。
- 如果是样式不生效的相关问题,你可以在 Vant 仓库下反馈。
## 在框架中使用