Comments (9)
@Nokecy 我刚刚又提交了,你尝试一下,应该是不再需要height了
from virtualized-table-for-antd.
高度计算是通过指定数值来做的,calc的话该怎么弄,,
查了下度娘“calc(100vh - 10px) 表示整个浏览器窗口高度减去10px的大小”
我能否这样计算?
y:浏览器窗口高度
height = y - 10
from virtualized-table-for-antd.
又看了下antd Table文档,scroll支持情况是{ x: number | true, y: number },并不支持css的那种方法
from virtualized-table-for-antd.
又去codepen调式了一下,发现居然又支持那种写法,,,
from virtualized-table-for-antd.
antd 文档应该没更新 ,可以使用calc(100vh - 10px)
from virtualized-table-for-antd.
可不可以在VT 的componentDidMount 中获取DOM的实际高度~~
from virtualized-table-for-antd.
显然
不行
from virtualized-table-for-antd.
666
from virtualized-table-for-antd.
可以 完美 @wubostc
from virtualized-table-for-antd.
Related Issues (20)
- 表格存在横项滚动条,scrollToIndex多次调用时,scrollLeft会变为0,能否保持不动 HOT 3
- 当用点击事件改变table数据时,列表超过5个项,却只出来5个 HOT 3
- Table does not support "bordered" HOT 1
- Responsive scroll "X" doesn't work as antd table HOT 3
- maxHeight 有时会计算错误 HOT 5
- 快速滚动时会出现大区域白屏一段时间,滚动条卡住了(内容越多越复杂时,该情况会更严重) HOT 8
- 树形展开的时候,如果行数增加,高度计算有问题 HOT 3
- 支持antd5吗 HOT 1
- 滚动快的话会触发两次onScroll HOT 1
- 可否设置成只在非生产环境下控制台才打印出包名称
- isEnd not always true HOT 3
- unessesary console.log() HOT 2
- Why attribute `bordered` doesn't work?
- wrong table height
- 合并行后滚动样式出现错误,能否让元素滚动长一点再销毁 HOT 3
- 请问怎么动态取消这个虚拟滚动 HOT 2
- 设置过bordered的表格样式会失效 HOT 1
- Add loading indicator or skeleton rows while scrolling to newly loaded areas HOT 1
- tree-structure table 展开后,scrollToIndex定位不准。
- Wrong table height with dynamic row height
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 virtualized-table-for-antd.