docs: add component registration link (#8378)

This commit is contained in:
neverland
2021-03-18 11:23:49 +08:00
committed by GitHub
parent 8643ffdb8d
commit f7706fb179
132 changed files with 264 additions and 2 deletions

View File

@@ -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';

View File

@@ -6,6 +6,8 @@
### 引入
通过以下方式来全局注册组件,更多注册方式请参考[组件注册](#/zh-CN/advanced-usage#zu-jian-zhu-ce)。
```js
import { createApp } from 'vue';
import { Search } from 'vant';