ant-design / ant-design/pro-components

🧐[问题]QueryFilter组件中getSpanConfig函数对于span的计算为什么会改变用户传入的layout

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

提问前先看看:

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

### 🧐 问题描述

QueryFilter组件中getSpanConfig函数对于span的计算为什么会改变用户传入的layout,当我指定span为响应式配置时,这里就会得到一个硬编码的horizontal,而不是我指定的layout

### 💻 示例代码

Image

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start at the QueryFilter component's getSpanConfig function and trace how responsive span configuration is converted into a layout value. Confirm why the user-provided layout becomes horizontal, then ensure the reported responsive-span case preserves the requested layout and verify the behavior with the relevant QueryFilter checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.