ant-design / ant-design/pro-components

🧐[问题] ProTable合并单元格失败,以及文档不一致且没有示例

Open
#8,701 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

### 🧐 问题描述

1.按照procomponents文档上描述,onCell并没有被列出(三张贴图说明问题):
"ProTable 在 antd 的 Table 上进行了一层封装,支持了一些预设,并且封装了一些行为。这里只列出与 antd Table 不同的 API。"

2.使用ProTable的onCell,我的单元格没有得到合并,由于我的列是动态获取,获取到数据之后再处理onCell,不知道处理的对不对?以及是否可以贴出ProTable合并单元格的代码,我的示例代码如下:

### 💻 示例代码
https://paste.ofcode.org/a3ERi8dfHbHz8JNmkg4mGw

### 🚑 其他信息

![image](https://github.com/user-attachments/assets/373ad44b-3599-47f7-80aa-10b7898ec3a0)

![image](https://github.com/user-attachments/assets/9229c4be-7c60-413e-9b96-b55ca899d4d9)
![image](https://github.com/user-attachments/assets/da157b42-7cdf-4e9a-910a-962320ab3966)

Contributor guide

Open the contributing guide

Research direction

Start with the linked ProTable usage example and compare its onCell behavior with the documented antd Table API. Done means the documentation explains whether ProTable supports cell merging and includes a working example for dynamically generated columns.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
documentation, frontend
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.