-
-
Notifications
You must be signed in to change notification settings - Fork 590
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
没有设置 title
的列,展示时表头变成了 td
,应该是 th
#1066
Comments
要 blame 一下为什么这么写,感觉是有意为之 |
看了一下 https://www.w3.org/WAI/tutorials/tables/irregular/ 没有 title 的部分作为 td 使用,但是我感觉 th 似乎还是更合理一些? |
这个 issue 跟链接中不是同一个场景: 链接里想表达的是:有一种场景叫做“第一列是表头列”。在这种场景下,左上角的单元格没有表头功能,展示为 没有
此外对于 |
我意思就是应该用 |
20 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CodeSandbox 链接:https://codesandbox.io/p/sandbox/antd-biao-ge-lie-mei-you-title-shi-hui-bian-wei-td-er-fei-forked-yy2x6s?file=%2Fdemo.tsx%3A1%2C1
原因是
src/Header/HeaderRow.tsx
里面的component
字段判断逻辑有误:这不但会影响到
title
为空的列,也会影响到expandable
所在列,因为它大部分情况下也没有title
。The text was updated successfully, but these errors were encountered: