Skip to content
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

[Component] [table] 多级表头+动态显示列 不能正确显示列(第一次勾选可以正确显示,取消全部勾选后再勾选其他列时不能正确显示) #16417

Closed
apzs opened this issue Apr 8, 2024 · 1 comment · Fixed by #16433

Comments

@apzs
Copy link

apzs commented Apr 8, 2024

Bug Type: Component

Environment

  • Vue Version: 3.4.21
  • Element Plus Version: 2.6.3
  • Browser / OS: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
  • Build Tool: Vite

Reproduction

Related Component

  • el-table

Reproduction Link

Element Plus Playground

Steps to reproduce

  1. 勾选State和City,不勾选Address和Zip,点击Submit,此时可以正确显示State和City
  2. 不勾选State和City,勾选Address和Zip,点击Submit,此时不能正确显示Address和Zip列,显示的是空数据

What is Expected?

取消勾选State和city,勾选Address和Zip后期望显示 Address和Zip列

What is actually happening?

实际没有显示这两列的信息

Additional comments

如下方式可以正确显示:
1、注释掉<el-table-column label="Address Info" v-if="showColumns.length">使其不嵌套,根据复现步骤可以正确显示
2、执行复现步骤第一步后,第二步保留第一步的任何列都可以正常显示(比如第二步保留City;不勾选State,勾选City、Address、Zip可以正常显示)

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants