Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG] Protable search表单如果设置span为固定值,在屏幕缩小时不会自适应布局,查询和重置button会超出小屏幕宽度,且表单项不会自动换行 #8836

Open
Hyperionlucky opened this issue Oct 29, 2024 · 1 comment

Comments

@Hyperionlucky
Copy link

提问前先看看:

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

🐛 bug 描述

Protable search表单如果设置span为固定值,在屏幕缩小时不会自适应布局,查询和重置button会超出小屏幕宽度,且表单项不会自动换行;
如果将span设置成自适应栅格布局,则「vertical」布局失效,
image

📷 复现步骤

search={{
layout: 'vertical',
span: 3,
}}
form={{
layout: "vertical",
colon: false,
// wrapperCol: {
// span: 24 // 属性值受限于Search的span,即为search的span * 这里的span / 24
// }
}}

🏞 期望结果

image

💻 复现代码

© 版本信息

  • ProComponents 版本:2.7.19
  • umi 版本:"@umijs/max": "^4.3.25",
  • 浏览器环境: chrome
  • 开发环境 [e.g. mac OS]

🚑 其他信息

@Hyperionlucky
Copy link
Author

补充一下:如果span设置成自适应布局,如{
xs: 24,
sm: 12,
md: 8,
lg: 6,
xl: 6,
xxl: 3,
},同样也会出现类似的问题
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant