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
+4 -3
View File
@@ -7,11 +7,12 @@ The PasswordInput component is usually used with [NumberKeyboard](#/en-US/number
### Install
```js
import Vue from 'vue';
import { createApp } from 'vue';
import { PasswordInput, NumberKeyboard } from 'vant';
Vue.use(PasswordInput);
Vue.use(NumberKeyboard);
const app = createApp();
app.use(PasswordInput);
app.use(NumberKeyboard);
```
## Usage
+4 -3
View File
@@ -7,11 +7,12 @@
### 引入
```js
import Vue from 'vue';
import { createApp } from 'vue';
import { PasswordInput, NumberKeyboard } from 'vant';
Vue.use(PasswordInput);
Vue.use(NumberKeyboard);
const app = createApp();
app.use(PasswordInput);
app.use(NumberKeyboard);
```
## 代码演示