docs: update component registration guide

This commit is contained in:
chenjiahan
2020-08-20 23:32:07 +08:00
parent 9a86e9e6ca
commit d42b1b43c3
124 changed files with 450 additions and 303 deletions
+5 -4
View File
@@ -3,12 +3,13 @@
### Install
```js
import Vue from 'vue';
import { createApp } from 'vue';
import { ContactCard, ContactList, ContactEdit } from 'vant';
Vue.use(ContactCard);
Vue.use(ContactList);
Vue.use(ContactEdit);
const app = createApp();
app.use(ContactCard);
app.use(ContactList);
app.use(ContactEdit);
```
## Usage
+5 -4
View File
@@ -7,12 +7,13 @@
### 引入
```js
import Vue from 'vue';
import { createApp } from 'vue';
import { ContactCard, ContactList, ContactEdit } from 'vant';
Vue.use(ContactCard);
Vue.use(ContactList);
Vue.use(ContactEdit);
const app = createApp();
app.use(ContactCard);
app.use(ContactList);
app.use(ContactEdit);
```
## 代码演示