vue瀑布流布局组件vue-waterfall

安装

npm install --save vue-waterfall

引入

import Waterfall from 'vue-waterfall/lib/waterfall'
import WaterfallSlot from 'vue-waterfall/lib/waterfall-slot'

components: {
  Waterfall,
  WaterfallSlot
},

300是每个元素的宽度

428是每个元素的高度

http://blog.sina.com.cn/s/blog_12b4ca5aa0102x6wl.html
https://codepen.io/huixisheng/pen/NgoLqR

posted @ 2018-08-22 15:13  GR07  阅读(7107)  评论(0编辑  收藏  举报