ant-design / ant-design/pro-components

🐛[BUG] ProTable搜索工具栏不居中

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

### 🐛 bug 描述

我想要ProTable和ProForm组件做个组合,功能上可以实现,但为什么搜索框(ID那边)不是居中的?

### 🏞 期望结果

居中显示

### 💻 复现代码

https://github.com/250king/NextMyOrder/tree/dev
https://github.com/250king/NextMyOrder/blob/dev/src/component/table/user.tsx
https://github.com/250king/NextMyOrder/blob/dev/src/component/table/order.tsx

### © 版本信息

- ProComponents 版本: 2.8.9
- 浏览器环境 Chrome 137.0.7151.120
- 开发环境 Windows 11

### 🚑 其他信息

![Image](https://github.com/user-attachments/assets/9bd65ae2-0332-4d65-ba1b-88babbee6b51)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the layout using the linked NextMyOrder example, especially src/component/table/user.tsx and src/component/table/order.tsx, in Chrome. Compare the ProTable and ProForm toolbar alignment and identify the relevant ProComponents behavior; done means the ID search field is centered without breaking the combined layout.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.