-
-
Notifications
You must be signed in to change notification settings - Fork 619
fix: should not rely on z-index #125
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
Conversation
position: absolute; | ||
top: 0; | ||
overflow: hidden; | ||
z-index: 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
z-index 很容易失控。 see: ant-design/ant-design@e289ce8#commitcomment-20987006
{this.getEmptyText()} | ||
{this.getFooter()} | ||
</div> | ||
{this.columnManager.isAnyColumnsLeftFixed() && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
调整之后的 DOM 结构也更加合理,因为 fixed 的只是附加内容,主内容应该在前面。
Snapshot 故意不提交,为了方便 review |
提交下我合并掉。 |
Updated. |
antd 本地可重现 http://127.0.0.1:8001/components/table/#components-table-demo-fixed-columns-header