We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4b386f commit 47ab3bbCopy full SHA for 47ab3bb
demo/App.vue
@@ -1,15 +1,9 @@
1
-<script setup lang="ts">
2
-const flush = () => {
3
- document.location.reload(true)
4
-}
5
-</script>
6
-
7
<template>
8
<div class="demo">
9
<img
10
v-for="it in 20"
11
:key="it"
12
- v-lazy="'https://i.pinimg.com/474x/2e/b9/c1/2eb9c1a03b3b995e001915af141283b6.jpg?random=' + Math.random()"
+ v-lazy="'https://unsplash.it/1600/900?random=' + Math.random()"
13
alt="img" />
14
</div>
15
</template>
demo/main.ts
@@ -1,5 +1,5 @@
import { createApp } from 'vue'
+import vilt from '../src/index'
import App from './App.vue'
-import { install } from '../src/index'
-createApp(App).use(install).mount('#app')
+createApp(App).use(vilt).mount('#app')
0 commit comments