ant-design / ant-design/pro-components

🧐[问题]ProTable的search属性配置,optionRender: fasle, span:6 时,当collapsed为true,如何显示4个搜索控件?当前显示3个

Open
#9,290 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

提问前先看看:

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

### 🧐 问题描述

### 💻 示例代码
```ts
// 搜索表单
const search: ProTableProps['search'] = {
span: 6,
labelWidth: 0,
collapsed,
showHiddenNum: false,
optionRender: false,
collapseRender: false,
onCollapse: refreshScrollY,
};
```

### 🚑 其他信息

Image

Contributor guide

Open the contributing guide

Research direction

Start at the ProTable search implementation and trace how span, collapsed, optionRender, collapseRender, and showHiddenNum affect the number of visible search controls. Reproduce the provided configuration and screenshot, then verify that the collapsed state displays the expected four controls.

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.