Comments (5)
没有 title 的部分作为 td 使用,但是我感觉 th 似乎还是更合理一些?
我意思就是应该用 th
哈~
from table.
要 blame 一下为什么这么写,感觉是有意为之
from table.
引入的 PR 是这个:#859
之前是正常的,这个 PR 专门让上层 HeaderRow
传了个 tdCellComponent
下来,并且在没有设置 title
时使用了它,应该是故意的。
查了一下 WHATWG 没有强制规定 thead
里面必须如何使用 th
或 td
,似乎也没有最佳实践之类的东西,所以我不知道为什么要这么改😂
from table.
看了一下 https://www.w3.org/WAI/tutorials/tables/irregular/
没有 title 的部分作为 td 使用,但是我感觉 th 似乎还是更合理一些?
from table.
这个 issue 跟链接中不是同一个场景:
链接里想表达的是:有一种场景叫做“第一列是表头列”。在这种场景下,左上角的单元格没有表头功能,展示为 td
比较合理。不过在 antd 里,这种场景用 rowScope: 'row'
就可以解决了。
没有 title
的表头不一定没有表头功能,例如:
Before | After | |
---|---|---|
1 | 2 | +1 |
3 | 4 | +1 |
此外对于 rowSelection
,如果设置为 checkbox 则左上角有内容、radio 则没内容,不能因为这个来推断“是否有表头功能”。
from table.
Related Issues (20)
- antd table,已经设置了 scroll={{x:true}} ,但是有的时候表格显示正常,有的时候内容会撑出去,把整个页面给撑开 HOT 1
- 【咨询】请问rc-table 虚拟列表支持row动态高度吗
- flex布局时,resize窗口,表格无法自动适应
- Feature Request: Add Hierarchical Lines to Expandable Row RC Table
- 能否提供一个类似elementui table 树形数据与懒加载 的API
- npm run compile error !!! How to build component? HOT 1
- 虚拟滚动时,table getRowKey 索引index 为undefined
- 更复杂的分组表头 HOT 5
- 虚拟滚动时,固定列阴影消失 HOT 2
- VirtualTable 虚拟列表如何处理 load more?
- SSR with Nextjs14+
- Tailwind customization table
- Option to scroll smooth to row in scrollTo function HOT 1
- 虚拟滚动时,当数据源发生变更时,横向滚动被重置
- rc-table show fixed column shadown as expected when viewport zoom in/out with some width
- scroll更新时不能滚动 HOT 1
- fixFooter 判断不准确,导致 Summary 组件的 fixed 为 'top' 不符合预期
- expandedRowRender and colspan
- onScroll 事件的属性 firefox 和 chrome 表现不一致 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from table.