Ask HN:在移动端展示数据表格的最佳方法是什么?

2作者: hilti8 个月前
我正在开发一个网络应用程序,其中包含一些数据量相当大的表格(比如产品库存、用户列表、分析仪表盘等),但移动端的体验非常糟糕。 在桌面端,一切看起来都很好,但在手机上却一团糟。我试过让表格水平滚动,但感觉很笨拙。我看到一些应用程序将表格转换为卡片式布局,另一些使用可展开的行,还有一些则隐藏列。 您发现哪些模式在实际生产中效果很好?您推荐查看哪些库或示例?如果您对此进行过用户测试,并有关于用户实际偏好的数据,那就更好了。
查看原文
I’m working on a web app with some fairly data-heavy tables (think product inventories, user lists, analytics dashboards, etc.) and the mobile experience is pretty rough. On desktop everything looks fine, but on phones it’s a mess. I’ve tried just letting tables scroll horizontally but it feels clunky. I’ve seen some apps convert tables to card-style layouts, others use expandable rows, and some just hide columns. What patterns have you found actually work well in production? Any libraries or examples you’d recommend checking out? Bonus points if you’ve done user testing on this and have data on what users actually prefer.