Giter VIP home page Giter VIP logo

waterfall-layout's People

Contributors

ngulee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

waterfall-layout's Issues

图片 mode="widthFix" 高度计算错误的问题

业务图片mode="widthFix" 会出现高度计算不准确的问题,猜测小程序的image mode="widthFix" 的情况下是先默认模式渲染再根据mode二次改变,所以导致第一时间获取的高度没有根据mode="widthFix"的情况获取

解决方法:waterfall-item 里面 lifetimes 的 setWaterfallItemPosition方法 在this.setData的回调里面延迟执行可以解决。

  this.setData({
    itemCount: itemCount + waterfall.childCount,
  }, () => {
    setTimeout(() => { // 这里要加延迟不然图片获取高度有问题 只是打个比方,确切来说需要图片加载完成后,再调用这个方法
      this.setWaterfallItemPosition();
    }, 300);
  })

loading-more显示有点问题

<view wx:if="{{isShowAllLoadedTxt}}" class="all-loaded">

应该加一下!loading判断

<view wx:if="{{!loading && isShowAllLoadedTxt}}" class="all-loaded">

btw: 感谢分享,非常棒,很好用

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.