mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
docs: add component registration link (#8378)
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
### Install
|
||||
|
||||
Register component globally via `app.use`, refer to [Component Registration](#/en-US/advanced-usage#zu-jian-zhu-ce) for more registration ways。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Search } from 'vant';
|
||||
|
@@ -6,6 +6,8 @@
|
||||
|
||||
### 引入
|
||||
|
||||
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
|
||||
|
||||
```js
|
||||
import { createApp } from 'vue';
|
||||
import { Search } from 'vant';
|
||||
|
Reference in New Issue
Block a user