mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Image): add lazyload registration
This commit is contained in:
parent
6b090ef68c
commit
f928063d6a
@ -57,6 +57,7 @@ Show round image, it may not works at `fit=contain` and `fit=scale-down`
|
|||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
import Vue from 'vue';
|
||||||
import { Lazyload } from 'vant';
|
import { Lazyload } from 'vant';
|
||||||
|
|
||||||
Vue.use(Lazyload);
|
Vue.use(Lazyload);
|
||||||
|
@ -66,6 +66,13 @@ Vue.use(Image);
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```js
|
||||||
|
import Vue from 'vue';
|
||||||
|
import { Lazyload } from 'vant';
|
||||||
|
|
||||||
|
Vue.use(Lazyload);
|
||||||
|
```
|
||||||
|
|
||||||
### 加载中提示
|
### 加载中提示
|
||||||
|
|
||||||
`Image`组件提供了默认的加载中提示,支持通过`loading`插槽自定义内容
|
`Image`组件提供了默认的加载中提示,支持通过`loading`插槽自定义内容
|
||||||
|
Loading…
x
Reference in New Issue
Block a user