Skip to content

table组件滚动条和选择框同时存在时,表头和内容有错位严重 #7190

@Gilbert5210

Description

@Gilbert5210
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.20

Environment

chrome 版本 113.0.5672.126(正式版本) (x86_64), vue@3.2.33

Reproduction link

https://vuecomponent.github.io/issue-helper/

Steps to reproduce

  1. 因为在window上,没有滚动条的也出现了滚动条的占位
  2. 所以我们在项目中,设置了这个属性,固定最后一列到最右边
.ant-table-body {
overflow-y: auto!important;
}
  1. 这个时候发现这里有一个错位
image image

What is expected?

不存在错位,可以取消表头的这个td的显示

What is actually happening?

表头和内容存在错位


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions