ant-design / ant-design/pro-components
🧐[问题] ProTable 表头分组后,无法正常搜索
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🧐 问题描述
在使用表头分组的情况下,无法搜索子表头的字段

### 💻 示例代码
```
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
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