Comments (8)
大佬好牛啊,看了你的源码,思路清晰,效果流畅!关键扩展性还很好,不愧是搞C的
from vue-virtual-waterfall.
大佬好牛啊,看了你的源码,思路清晰,效果流畅!关键扩展性还很好,不愧是搞C的
不是搞C的,最近在搞flutter,里面有些源码是C。
这个库我优化到了瓶颈,但是感觉还是不够,最近没啥思路,只能先搞其他的了。
from vue-virtual-waterfall.
学习了
from vue-virtual-waterfall.
- 内置真实高度计算方法
- 修改虚拟列表遍历算法,改成双指针判断,为了避免特殊情况(出现一个高度非常高独占一列的元素),必须针对每个元素进行判断
瀑布流元素整体是线性增加的,使用区间树算法并没有很好的解决元素多时计算可见元素的耗时问题
- keep-alive路由切换时,滚动条的位置回到了0点
- 加载了大量数据后resize窗口,会重新计算一遍所有项目的位置、高度
- 优化下图耗时问题
我遇到了第二个问题,当瀑布流中有一张图片过长时会打乱整个布局😭 ,作者大大加油呀,毕设就靠你这组件了 嘿嘿
from vue-virtual-waterfall.
@2383155523 周六日有时间看看
from vue-virtual-waterfall.
@2383155523 周六日有时间看看
嗯,我自己限制了下上传的图片的宽高,也能规避这个问题,就目前而言还是可以的。
from vue-virtual-waterfall.
@2383155523 周六日有时间看看
嗯,我自己限制了下上传的图片的宽高,也能规避这个问题,就目前而言还是可以的。
修复了,更新到最新版本
from vue-virtual-waterfall.
@2383155523 周六日有时间看看
嗯,我自己限制了下上传的图片的宽高,也能规避这个问题,就目前而言还是可以的。
修复了,更新到最新版本
ok
from vue-virtual-waterfall.
Related Issues (15)
- 如何在滚动到页面底部时才加载下一页
- npm 包能否移除@arco-design/web-vue 和 mockjs HOT 2
- 有时间是否可以研究下支持一下ssr,nuxt这种框架 HOT 7
- 下个阶段的改进 HOT 8
- loadMoreData 一直再触发可能是什么原因呢? HOT 5
- 是不支持绑定滚动父元素吗,比如我想把滚动绑在window上,整个页面就全局一个滚动(列表上面要banner) HOT 8
- 虚拟列表不生效 HOT 1
- 使用keep-alive的时候出现bug HOT 8
- 计算文本内容高度对于换行文本计算不是很友好 HOT 2
- itemWidth和itemMinWidth之间语义上有冲突? HOT 5
- Kind notice HOT 2
- 能否增加一个属性,设置两边gap为0? HOT 1
- 局部使用该虚拟列表时,由于获取参与计算的top是基于视口的,列表元素会在全局滚动时异常响应修改,我简单修改 基于父元素的scrollTop去做运算,测不出问题,不知道楼主是不是有其他考虑? HOT 1
- 有vue2的版本嘛 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-virtual-waterfall.