ElemeFE / ElemeFE/element

[Bug Report] Sets the table fixed guide, asynchronously changes the table data, table header and content misalignment

Open
#17,292 3 comments 3 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.11.0

### OS/Browsers version
win10 / chome 版本 76.0.3809.132(正式版本) (64 位)

### Vue version
2.5.17

### Reproduction Link
https://codepen.io/forx-js/pen/abodxyY

### Steps to reproduce
1.创建表格,绑定data为空数组
2.设置固定高度
3.异步给表格赋值
4.就会出现表格表头和内容不对应的问题,因为内容右侧出现滚动条占用一定位置,头部有class为gutter的th,但并没有显示,宽度也是0

### What is Expected?
内容改变,也能够对齐表头和内容

### What is actually happening?
表头和内容错位

/* 改变浏览器窗口时可以触发方法,能够计算出正确的宽度,但设置数据不行,table组件这个方法resizeListener触发一下好像就可以了 */

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.