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
fix: Form 与 Grid 样式冲突问题 #44472
fix: Form 与 Grid 样式冲突问题 #44472
Conversation
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #44472 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 661 661
Lines 11231 11272 +41
Branches 3042 3060 +18
=========================================
+ Hits 11231 11272 +41
☔ View full report in Codecov by Sentry. |
@@ -92,7 +93,7 @@ const genLoopGridColumnsStyle = (token: GridColToken, sizeCls: string): CSSObjec | |||
const gridColumnsStyle: CSSObject = {}; | |||
for (let i = gridColumns; i >= 0; i--) { | |||
if (i === 0) { | |||
gridColumnsStyle[`${componentCls}${sizeCls}-${i}`] = { | |||
gridColumnsStyle[`${componentCls}${componentCls}${componentCls}${sizeCls}-${i}`] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加个备注说明一下为什么要加两层,其他没什么~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close: #44456
💡 Background and solution
📝 Changelog
wrapperCol.span
为0
时,子元素不隐藏的问题。☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at cc0ab4e
This pull request enhances the grid component's style customization by adding a
rootPrefixCls
parameter to its style functions and hooks. This allows users to change the class name prefix for the grid elements incomponents/grid/style/index.ts
.🔍 Walkthrough
🤖 Generated by Copilot at cc0ab4e
rootPrefixCls
parameter to grid style functions and pass it togenLoopGridColumnsStyle
function to generate class name prefix for grid columns (link, link, link, link, link)gridColumnsStyle
object in another object with.${rootPrefixCls}-row
key to target grid row element ingenGridStyle
function (link)rootPrefixCls
property to second argument ofgenComponentStyleHook
function call inuseColStyle
function, which is a custom hook that returns style objects for grid column component (link)components/grid/style/index.ts
file for code formatting and readability (link)