We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da62b0d commit b4b386fCopy full SHA for b4b386f
readme.md
@@ -27,13 +27,15 @@ createApp(App)
27
Use it in your template, your image will be lazy loaded.
28
29
```html
30
-<script setup lang="ts">
31
- const url = 'https://avatars.githubusercontent.com/u/59404696?v=4'
32
-</script>
33
-
34
-<div>
35
- <img v-lazy="url"/>
36
-</div>
+<template>
+ <div class="demo">
+ <img
+ v-for="it in 20"
+ :key="it"
+ v-lazy="'https://i.pinimg.com/474x/2e/b9/c1/2eb9c1a03b3b995e001915af141283b6.jpg?random=' + Math.random()"
+ alt="img" />
37
+ </div>
38
+</template>
39
```
40
41
## Preview
0 commit comments