Skip to content
New issue

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

期望Data Table 支持 随页面滚动的固定表头 #6552

Open
3 tasks done
wxwebfeng opened this issue Nov 19, 2024 · 0 comments
Open
3 tasks done

期望Data Table 支持 随页面滚动的固定表头 #6552

wxwebfeng opened this issue Nov 19, 2024 · 0 comments
Labels
feature request New feature or request pr welcome

Comments

@wxwebfeng
Copy link

问题的清晰而简明的描述

期待 table 父祖级元素滚动,table head 能支持 粘性定位,实现滚动时表头能固定在上方

建议的解决方案

建议 head 能像设置max-height 固定头部 那样将 head 孤立抽离,然后 给 head 设置上 position: sticky;z-index: 3; top: 0;(这里期望 top可动态配置), 同时给table 设置上position: relative;

备选方案

可以查看 antdv 实现 https://www.antdv.com/components/table-cn/#components-table-demo-sticky

附加上下文

No response

验证

  • 阅读 贡献指南
  • 阅读 文档
  • 检查是否已经存在请求相同功能的问题,以避免创建重复的问题。
@wxwebfeng wxwebfeng added the feature request New feature or request label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request pr welcome
Projects
None yet
Development

No branches or pull requests

2 participants