一、安装Waterfall
npm install vue-waterfall-plugin -s
二、在组件中引入并使用
<template>
<div>
<Waterfall ref="waterfall" :list="lotList" :gutter="13" backgroundColor="#ffffff"
:breakpoints="{500: { rowPerView: 2,}}">
<template slot="item" slot-scope="props">
<div class="water" :class="block?'showWater':''">
<img :src="props.data.mediumUrl" alt="" @load="$refs.waterfall.refresh()" style="width:100%">
<div class="d-flex flex-wrap">
<div style="color:#000000;font-size:0.28rem;padding:0 0.2rem">