ali-react-table
ali-react-table copied to clipboard
行数超过100条时,如果把baseTable隐藏再重新显示,横向滚动条每次都会回到最左侧;行数少于100条时,则不会出现这个问题,请问该怎么办呢
我去看了BaseTable的 props,好像是支持offsetX的,但是设置了并未生效,请问一下该怎么做,救救孩子吧
这个应该和虚拟滚动的实现有关系,隐藏之后读取不到 dom 节点的宽度/高度了,导致 scroll 重置为了 0
先关掉虚拟滚动试下吧 设置一下 useVirtual={false}
因为我的数据量比较大,关闭虚拟滚动的话,渲染的性能大幅度降低了(𖦹.𖦹),我看了BaseTable的源码,它好像是支持传入offsetY,但设置后并未生效
发自我的iPhone
------------------ 原始邮件 ------------------ 发件人: 肥超 @.> 发送时间: 2022年2月9日 10:05 收件人: alibaba/ali-react-table @.> 抄送: xinyiPig @.>, Author @.> 主题: Re: [alibaba/ali-react-table] 行数超过100条时,如果把baseTable隐藏再重新显示,横向滚动条每次都会回到最左侧;行数少于100条时,则不会出现这个问题,请问该怎么办呢 (Issue #282)
这个应该和虚拟滚动的实现有关系,隐藏之后读取不到 dom 节点的宽度/高度了,导致 scroll 重置为了 0 先关掉虚拟滚动试下吧 设置一下 useVirtual={false}
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>