docs(Lazyload): update lazy component guide (#4442)

This commit is contained in:
neverland
2019-09-12 15:57:40 +08:00
committed by GitHub
parent e359ed6ace
commit f14043c18d
2 changed files with 18 additions and 4 deletions
+8 -1
View File
@@ -40,6 +40,13 @@ Use `v-lazy:background-image` to set background url, and declare the height of t
### Lazyload Component
```js
// set `lazyComponent` option
Vue.use(Lazyload, {
lazyComponent: true
});
```
```html
<lazy-component>
<img v-for="img in imageList" v-lazy="img" >
@@ -61,4 +68,4 @@ Use `v-lazy:background-image` to set background url, and declare the height of t
| filter | The image's listener filter | *object* | - | - |
| lazyComponent | Lazyload component | *boolean* | `false` | - |
See more[ vue-lazyload ](https://github.com/hilongjw/vue-lazyload)
> See more[ vue-lazyload ](https://github.com/hilongjw/vue-lazyload)