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
+6 -4
View File
@@ -3,10 +3,11 @@
### Install
```js
import Vue from 'vue';
import { createApp } from 'vue';
import { Image as VanImage } from 'vant';
Vue.use(VanImage);
const app = createApp();
app.use(VanImage);
```
## Usage
@@ -53,10 +54,11 @@ Show round image, it may not works at `fit=contain` and `fit=scale-down`
```
```js
import Vue from 'vue';
import { createApp } from 'vue';
import { Lazyload } from 'vant';
Vue.use(Lazyload);
const app = createApp();
app.use(Lazyload);
```
## API
+6 -4
View File
@@ -7,10 +7,11 @@
### 引入
```js
import Vue from 'vue';
import { createApp } from 'vue';
import { Image as VanImage } from 'vant';
Vue.use(VanImage);
const app = createApp();
app.use(VanImage);
```
## 代码演示
@@ -63,10 +64,11 @@ Vue.use(VanImage);
```
```js
import Vue from 'vue';
import { createApp } from 'vue';
import { Lazyload } from 'vant';
Vue.use(Lazyload);
const app = createApp();
app.use(Lazyload);
```
### 加载中提示