Skip to content

table表,scroll同时使用x和y时,表头与列错位--如demo #1658

Open
@changhighly

Description

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

Version

undefined

Environment

MAC10.13.3,Google Chrome79.0.3945.79 (正式版本) (64 位),"vue": "^2.5.22",

Reproduction link

Edit on CodeSandbox

Steps to reproduce

在a-table中给:scroll添加y:300

What is expected?

表头与列对齐

What is actually happening?

表头与列错位


开发需求:当表中数据多时,要求限制表的高度,同时文字要一行展示,避免表头滚到屏幕上侧,于是给:scroll="{ x:true }"添加y --> :scroll="{ x:true, y:300}",当给scroll添加y:300后,表头与列就错位了

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