lfyfly / vue-waterfall-easy

vue瀑布流组件(vue-waterfall-easy 2.x)
https://lfyfly.github.io/vue-waterfall-easy/demo/#/
MIT License
860 stars 350 forks source link

我这个渣渣,按教程在vue里面一步一步写,全写完了,没报错,但是啥东西也没出来,console.log(res.data)也有数据出来 #26

Closed shrimpbighead closed 6 years ago

shrimpbighead commented 6 years ago

我这个渣渣,按教程在vue里面一步一步写,全写完了,没报错,但是啥东西也没出来,console.log(res.data)也有数据出来 (20) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}] 0 : href : (...) info : "一些图片描述文字" src : (...) _height : 251 ob : Observer {value: {…}, dep: Dep, vmCount: 0} get href : ƒ reactiveGetter()

shrimpbighead commented 6 years ago

好吧,我找到原因了,父元素没定高度( ̄ェ ̄;)

shrimpbighead commented 6 years ago

@lfyfly 那个gap可以换成不同的四个padding值吗,不要相同的padding间距,外层想设多一个padding一边适应你的padding,但好像会出问题

lfyfly commented 6 years ago

目前不行