@vant/lazyload

This is a fork of vue-lazyload

Usage no npm install needed!

<script type="module">
  import vantLazyload from 'https://cdn.skypack.dev/@vant/lazyload';
</script>

README

@vant/lazyload

This is a fork of vue-lazyload with Vue 3 support.

Install

yarn add @vant/lazyload

Usage

import { createApp } from 'vue';
import { LazyLoad } from '@vant/lazyload';

const app = createApp();
app.use(LazyLoad);

API

see: https://github.com/hilongjw/vue-lazyload

TODO

support TypeScript.