ElemeFE / ElemeFE/element

[Bug Report] table多级表格中某列的子列固定,其余子列不固定,会导致不设置固定属性的子列内容渲染为空

Open
#22,752 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.14

### OS/Browsers version
Windows Feature Experience Pack 1000.19053.1000.0 / 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

### Vue version
2.6.11

### Reproduction Link
https://codepen.io/yirujet/pen/YzBOZQM

### Steps to reproduce
1. vue模板中添加一个el-table组件,并构造成树形表头
2. 将其中拥有至少2个子列的父级列设置固定属性fixed,同时给某一个子列也设置固定属性fixed
3. 表格渲染后,未设置固定属性的子列内容为空

### What is Expected?
表格渲染后,未设置固定属性的子列内容也能正常展示

### What is actually happening?
表格渲染后,未设置固定属性的子列内容为空;
源码中,会把父列下的所有子列的class追加'is-hidden',导致其visibility属性为hidden了。

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.