ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
92.15k stars 49.29k forks source link

table Column render 返回参数的api #51227

Open chengdick opened 2 hours ago

chengdick commented 2 hours ago

What problem does this feature solve?

在table 中添加进度条问题

What does the proposed API look like?

The render function of cell, has three params: the text of this cell, the record of this row, the index of this row, it's return an object:{ children: value, props: { colSpan: 1, rowSpan:1 } } ==> 'children' is the text of this cell, props is some setting of this cell, eg: 'colspan' set td colspan, 'rowspan' set td rowspan 我看到rc-table 有这个api,antd没有对应的demo,api使用方法

chengdick commented 2 hours ago

期望加上

afc163 commented 2 hours ago

我看到rc-table 有这个api,antd没有对应的demo,api使用方法

antd 也支持的,如果不支持,可以提供一个重现看看。

github-actions[bot] commented 2 hours ago

Hello @chengdick. Please provide a online reproduction by forking this one or provide a minimal GitHub repository like create-react-app-antd. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @chengdick,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过 fork 这个在线重现案例 ,或者提供一个最小化的 GitHub 仓库(类似 create-react-app-antd)。3 天内未跟进此 issue 将会被自动关闭。

什么是最小化重现,为什么这是必需的?