Giter VIP home page Giter VIP logo

Comments (5)

zombieJ avatar zombieJ commented on August 28, 2024 1

没有 title 的部分作为 td 使用,但是我感觉 th 似乎还是更合理一些?

我意思就是应该用 th 哈~

from table.

zombieJ avatar zombieJ commented on August 28, 2024

要 blame 一下为什么这么写,感觉是有意为之

from table.

RexSkz avatar RexSkz commented on August 28, 2024

引入的 PR 是这个:#859

之前是正常的,这个 PR 专门让上层 HeaderRow 传了个 tdCellComponent 下来,并且在没有设置 title 时使用了它,应该是故意的。

查了一下 WHATWG 没有强制规定 thead 里面必须如何使用 thtd,似乎也没有最佳实践之类的东西,所以我不知道为什么要这么改😂

from table.

zombieJ avatar zombieJ commented on August 28, 2024

看了一下 https://www.w3.org/WAI/tutorials/tables/irregular/

没有 title 的部分作为 td 使用,但是我感觉 th 似乎还是更合理一些?

from table.

RexSkz avatar RexSkz commented on August 28, 2024

这个 issue 跟链接中不是同一个场景:

链接里想表达的是:有一种场景叫做“第一列是表头列”。在这种场景下,左上角的单元格没有表头功能,展示为 td 比较合理。不过在 antd 里,这种场景用 rowScope: 'row' 就可以解决了。

没有 title 的表头不一定没有表头功能,例如:

BeforeAfter
12+1
34+1

此外对于 rowSelection,如果设置为 checkbox 则左上角有内容、radio 则没内容,不能因为这个来推断“是否有表头功能”。

from table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.