We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://stackblitz.com/edit/react-ytlq4p?file=index.css,demo.tsx,index.tsx
当自定义浏览器滚动条时,并且设置 scroll.y,此时 rc-table 会在表头自动添加一列 xxx-cell-scrollbar,用于与自定义滚动条对齐。
但是当表格的数据量比较小时,表格内并没有出现滚动,还是会添加 xx-cell-scrollbar 列,并且表格内部会设置 overflow: scroll,样式会显得比较奇怪,如下:
希望能在表格内部未出现滚动的情况下,不自动添加该 scrollbar 列,并且 body 样式设置为 overflow: auto。
默认情况下不添加 scrollbar 列,用 rc-resize-observer 监听 body 是否滚动,渲染完成后,根据滚动状态来决定是否添加 scrollbar 列。
The text was updated successfully, but these errors were encountered:
同样的问题我们也遇到了,希望给到一个解决的方法
Sorry, something went wrong.
@zombieJ
ant-design/ant-design#47777 (comment) 需要自行监听是否滚动条
哥,解决了吗,遇到同样问题
列多时,不填充可能列头错位。
No branches or pull requests
问题复现地址:
https://stackblitz.com/edit/react-ytlq4p?file=index.css,demo.tsx,index.tsx
问题描述:
当自定义浏览器滚动条时,并且设置 scroll.y,此时 rc-table 会在表头自动添加一列 xxx-cell-scrollbar,用于与自定义滚动条对齐。
但是当表格的数据量比较小时,表格内并没有出现滚动,还是会添加 xx-cell-scrollbar 列,并且表格内部会设置 overflow: scroll,样式会显得比较奇怪,如下:
期望:
希望能在表格内部未出现滚动的情况下,不自动添加该 scrollbar 列,并且 body 样式设置为 overflow: auto。
一点想法:
默认情况下不添加 scrollbar 列,用 rc-resize-observer 监听 body 是否滚动,渲染完成后,根据滚动状态来决定是否添加 scrollbar 列。
The text was updated successfully, but these errors were encountered: