ant-design / ant-design/pro-components

🧐[问题 | question] antd v5, ProTable设置search={{ filterType: 'light'}}后, 查询区域的宽度变为50%, v4的时候是100%, 怎么设置为100%

Open
#8,034 0 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

### 🧐 问题描述 | Problem description

antd v5, ProTable设置search={{ filterType: 'light'}}后, 查询区域的宽度变为50%, v4的时候是100%, 怎么设置为100%

### 💻 示例代码 | Sample code

https://github.com/21pages/umimax-antdpro-dark-theme-loading-transition-whitescreen-splash

### 🚑 其他信息 | Other information

![1703052308997](https://github.com/ant-design/ant-design-pro/assets/14891774/d5e9d708-ae09-40b2-89cb-4a225996d49f)

OS: windows 11

Node:v18.16.0

浏览器 | browser:chrome 120.0.6099.110

Contributor guide

Open the contributing guide

Research direction

Start with the linked reproduction at 21pages/umimax-antdpro-dark-theme-loading-transition-whitescreen-splash and inspect ProTable's search configuration for filterType: 'light'. Compare the v5 behavior with v4 and verify how the query area width is determined. Done means establishing whether a supported setting restores 100% width and confirming it in the reproduction.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.