1.1.2 • Published 3 years ago

vue-waterfall-lazyload v1.1.2

Weekly downloads
133
License
MIT
Repository
-
Last release
3 years ago

Install

npm i vue-waterfall-lazyload -S

Quick Start

import Vue from 'vue'
import LazyWaterfall from 'vue-waterfall-lazyload/lib/lazyWaterfall'
Vue.use(LazyWaterfall)

SSR/Nuxt Start

nuxt.config.js

    { src: '@/plugins/no-ssr', ssr: false },

plugins/no-ssr

import Vue from 'vue'
import LazyWaterfall from 'vue-waterfall-lazyload/lib/lazyWaterfall'
Vue.use(LazyWaterfall)
<client-only>
    <LazyWaterfall />
</client-only>

How to use

Attributes

参数说明类型默认值
list首屏图片列表Array/
row每行显示图片个数Number5
padding图片之间间距Number10
loadData加载函数Function/

loadData

loadData() {
            return new Promise((reslove) => {
                setTimeout(function () {
                    reslove([...src])
                }, 3000)
            })
        },
1.1.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago