Skip to content

Commit 37d9d46

Browse files
docs: ✏️ 文档中增加@uni-helper/vite-plugin-uni-components的使用提示
1 parent af78632 commit 37d9d46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/quick-use.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ import Components, { kebabCase } from '@uni-helper/vite-plugin-uni-components'
9595

9696
export default defineConfig({
9797
plugins: [
98+
// make sure put it before `Uni()`
9899
Components({
99100
resolvers: [
100101
{
@@ -126,6 +127,7 @@ import { WotResolver } from '@uni-helper/vite-plugin-uni-components/resolvers'
126127

127128
export default defineConfig({
128129
plugins: [
130+
// make sure put it before `Uni()`
129131
Components({
130132
resolvers: [WotResolver()]
131133
}), uni()],
@@ -142,8 +144,6 @@ public-hoist-pattern[]=@vue*
142144
// shamefully-hoist = true
143145
```
144146

145-
see more in [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components#installation)
146-
147147

148148
## Volar 支持<el-tag type="primary" style="vertical-align: middle;margin-left:8px;" effect="dark" >推荐</el-tag>
149149
如果您使用 `Volar`,请在 `tsconfig.json` 中通过 `compilerOptions.type` 指定全局组件类型。

0 commit comments

Comments
 (0)