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

在某些情况下表头消失 #48691

Closed
hengyanqwe opened this issue Apr 29, 2024 · 2 comments
Closed

在某些情况下表头消失 #48691

hengyanqwe opened this issue Apr 29, 2024 · 2 comments
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@hengyanqwe
Copy link

hengyanqwe commented Apr 29, 2024

Reproduction link

Steps to reproduce

添加,然后右侧的表格删除几个就出现了

What is expected?

正常

What is actually happening?

表头消失

Environment Info
antd 5.16.5
React 18
System windows
Browser chrome
image
@afc163 afc163 added 🐛 Bug Ant Design Team had proved that this is a bug. and removed unconfirmed labels Apr 29, 2024
@linxianxi
Copy link
Contributor

image
key 不能为数组,修改后正常。建议添加类型 const columns: TableProps['columns'] = [];

另外,提问题最好提供最小复现,你这个代码又多,又没格式化,帮你查问题的时候想🤮

@hengyanqwe
Copy link
Author

image key 不能为数组,修改后正常。建议添加类型 const columns: TableProps['columns'] = [];

另外,提问题最好提供最小复现,你这个代码又多,又没格式化,帮你查问题的时候想🤮

好了,谢谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

4 participants