Git Product home page Git Product logo

Comments (8)

yeminxuan avatar yeminxuan commented on May 26, 2024

大佬好牛啊,看了你的源码,思路清晰,效果流畅!关键扩展性还很好,不愧是搞C的

from vue-virtual-waterfall.

lhlyu avatar lhlyu commented on May 26, 2024

大佬好牛啊,看了你的源码,思路清晰,效果流畅!关键扩展性还很好,不愧是搞C的

不是搞C的,最近在搞flutter,里面有些源码是C。
这个库我优化到了瓶颈,但是感觉还是不够,最近没啥思路,只能先搞其他的了。

from vue-virtual-waterfall.

amumubuku avatar amumubuku commented on May 26, 2024

学习了

from vue-virtual-waterfall.

2383155523 avatar 2383155523 commented on May 26, 2024
  1. 内置真实高度计算方法
  2. 修改虚拟列表遍历算法,改成双指针判断,为了避免特殊情况(出现一个高度非常高独占一列的元素),必须针对每个元素进行判断

瀑布流元素整体是线性增加的,使用区间树算法并没有很好的解决元素多时计算可见元素的耗时问题

  1. keep-alive路由切换时,滚动条的位置回到了0点
  2. 加载了大量数据后resize窗口,会重新计算一遍所有项目的位置、高度
  3. 优化下图耗时问题

image

我遇到了第二个问题,当瀑布流中有一张图片过长时会打乱整个布局😭 ,作者大大加油呀,毕设就靠你这组件了 嘿嘿

from vue-virtual-waterfall.

lhlyu avatar lhlyu commented on May 26, 2024

@2383155523 周六日有时间看看

from vue-virtual-waterfall.

2383155523 avatar 2383155523 commented on May 26, 2024

@2383155523 周六日有时间看看

嗯,我自己限制了下上传的图片的宽高,也能规避这个问题,就目前而言还是可以的。

from vue-virtual-waterfall.

lhlyu avatar lhlyu commented on May 26, 2024

@2383155523 周六日有时间看看

嗯,我自己限制了下上传的图片的宽高,也能规避这个问题,就目前而言还是可以的。

修复了,更新到最新版本

from vue-virtual-waterfall.

2383155523 avatar 2383155523 commented on May 26, 2024

@2383155523 周六日有时间看看

嗯,我自己限制了下上传的图片的宽高,也能规避这个问题,就目前而言还是可以的。

修复了,更新到最新版本

ok

from vue-virtual-waterfall.

Related Issues (15)

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.