vin-waterfall
v1.0.1
Published
瀑布流组件
Downloads
9
Readme
vin-waterfall
介绍
这是一个vue瀑布流组件,支持图文混合、自定义列数
目前仅支持vue3版本
Install
Using npm to install:
npm i vin-waterfallQuickstart
import { createApp } from 'vue';
import VinWaterfall from 'vin-waterfall';
// 2. Import the components style
import 'vin-waterfall/vinWaterfall.css';
const app = createApp();
// 3. Register the components you need
app.use(VinWaterfall);params
| key | value | | --------------------- | :------------------------: | | list (Array) | 瀑布流源数据 | | columnCount(number) | 自定义瀑布流列数,默认2 | | imgUrlKey(string) | 图片字段名称,默认"imgUrl" |
