waterfall-v3
v1.0.5
Published
A Vue 3 waterfall component
Readme
Vue3-waterfall
A waterfall layout component for Vue3.js .
The address of the waterfall component of vue2 version is vue-waterfall.
The warehouse is an upgraded version of vue-waterfall replica. Advantages, support vue3 version
Optimized the legacy issues of vue2 version.
Effect Preview
Installation
npm install --save waterfall-v3<script src="https://cdn.jsdelivr.net/gh/Found-404/[email protected]/dist/Waterfall-Vue3.umd.js"></script>Introduction
... import { Waterfall, WaterfallSlot } from "waterfall-v3"; ...
<Waterfall
:line-gap="200"
:min-line-gap="180"
:max-line-gap="220"
ref="waterfall"
>
<WaterfallSlot
v-for="(item, index) in items"
:width="item.width"
:height="item.height"
:key="item.index"
:order="index"
move-class="item-move"
>
<div class="item" :style="item.style" :index="item.index"></div>
</WaterfallSlot>
</Waterfall>