Skip to content

Commit 47ab3bb

Browse files
committed
fix: demo
1 parent b4b386f commit 47ab3bb

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

demo/App.vue

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
<script setup lang="ts">
2-
const flush = () => {
3-
document.location.reload(true)
4-
}
5-
</script>
6-
71
<template>
82
<div class="demo">
93
<img
104
v-for="it in 20"
115
:key="it"
12-
v-lazy="'https://i.pinimg.com/474x/2e/b9/c1/2eb9c1a03b3b995e001915af141283b6.jpg?random=' + Math.random()"
6+
v-lazy="'https://unsplash.it/1600/900?random=' + Math.random()"
137
alt="img" />
148
</div>
159
</template>

demo/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createApp } from 'vue'
2+
import vilt from '../src/index'
23
import App from './App.vue'
3-
import { install } from '../src/index'
44

5-
createApp(App).use(install).mount('#app')
5+
createApp(App).use(vilt).mount('#app')

0 commit comments

Comments
 (0)