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

🐛[ProTable] 搜索表单, collapse不需要时,样式存在问题。 #7655

Closed
lk0606 opened this issue Sep 11, 2023 · 2 comments
Closed

Comments

@lk0606
Copy link
Contributor

lk0606 commented Sep 11, 2023

🐛 bug 描述

当不需要渲染展开收起时,没有提供showCollapse这样的api控制,是通过collapseRender来处理,此处包裹组件通过space+内联style:{gutter:16}处理的,此处处理不当,有样式bug

📷 复现步骤

image
image

🏞 期望结果

以下两种处理方式都可以

  • 源代码space+内联style:{gutter:16}改为space+内联style:{gutter:0}
  • 提供showCollapse控制展开收起

💻 复现代码

https://codesandbox.io/s/cha-xun-biao-ge-forked-2l5255?file=/App.tsx

© 版本信息

版本都可复现

🚑 其他信息

@varown
Copy link
Contributor

varown commented Sep 12, 2023

search={{
labelWidth: "auto",
collapseRender:false,
defaultCollapsed: false
}}

@chenshuai2144
Copy link
Contributor

chenshuai2144 commented Sep 19, 2023

有 collapse 的

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

3 participants