ant-design / ant-design/pro-components

🧐[问题]ProTable toolbar没有small模式

Open
#8,252 5 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

### 🧐 问题描述

ProTable defaultSize="small",但是上面的toolbar仍然很高,看了下padding=16,怎么让toolbar变窄或者跟随small模式。

### 💻 示例代码
```

打印
,
],
}}
defaultSize="small"
rowSelection={{
selectedRowKeys: selectedKeys,
onChange: setSelectedKeys,
}}
```

### 🚑 其他信息
![image](https://github.com/ant-design/pro-components/assets/5194965/5a4fb31f-1a5a-4530-80ff-1f3f2b44a9e7)

Contributor guide

Open the contributing guide

Research direction

Start by tracing ProTable's toolbar rendering and how the defaultSize="small" prop is applied to the table and toolbar. Verify the behavior with the provided toolbar and row-selection example; done means the toolbar height or padding follows the small mode.

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.