ant-design / ant-design/pro-components

🧐[问题] ProTable 表头分组后,无法正常搜索

Open
#7,873 1 comment 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

### 🧐 问题描述
在使用表头分组的情况下,无法搜索子表头的字段

![image](https://github.com/ant-design/pro-components/assets/35565811/dc73df54-ce7d-4a05-8127-88b0ec4d06e0)

### 💻 示例代码

```
import { ProTable } from '@ant-design/pro-table';

const columns = [
{
title: '基本信息',
children: [
{
title: '姓名',
dataIndex: 'name',
key: 'name',
},
{
title: '年龄',
dataIndex: 'age',
key: 'age',
},
],
},
{
title: '联系信息',
children: [
{
title: '邮箱',
dataIndex: 'email',
key: 'email',
},
{
title: '电话',
dataIndex: 'phone',
key: 'phone',
},
],
},
];
```

Contributor guide

Open the contributing guide

Research direction

Start at ProTable's search handling and reproduce the issue with the grouped columns shown in the report. Verify that the child fields name, age, email, and phone can be searched when their columns are nested under grouped headers.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.