ant-design / ant-design/pro-components

🐛[BUG] ProTable中使用dependency后columns中的每项的colSize无效

Open
#6,928 1 comment 0 reactions 0 assignees View on GitHub
🎖️ featrue AI Reply table
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中columns使用dependency联动控制搜索项时

![image](https://user-images.githubusercontent.com/76024376/231189479-a64035cb-9179-4f18-8aea-e963b0ab2052.png)
columns中多项时会垂直布局,colSize无效

![image](https://user-images.githubusercontent.com/76024376/231189680-db75e2dd-ae16-4f5c-9feb-5fc4dfbc9087.png)

columns中单项时,colSize: 2也无效

### 📷 复现步骤

### 🏞 期望结果

### 💻 复现代码

https://codesandbox.io/s/cha-xun-biao-ge-forked-88tcj3?file=/App.tsx
### © 版本信息

- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction at App.tsx and inspect the ProTable columns that use dependency and colSize. Reproduce both the multiple-column and single-column cases, then verify that colSize controls the search-item layout as expected in each case.

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.