-
-
Notifications
You must be signed in to change notification settings - Fork 50.8k
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
feat: Col support flex
prop
#16635
feat: Col support flex
prop
#16635
Conversation
Deploy preview for ant-design ready! Built with commit 2f791f8 |
Codecov Report
@@ Coverage Diff @@
## 4.0-prepare #16635 +/- ##
===============================================
+ Coverage 97.46% 97.46% +<.01%
===============================================
Files 288 288
Lines 7216 7219 +3
Branches 1995 1997 +2
===============================================
+ Hits 7033 7036 +3
Misses 183 183
Continue to review full report at Codecov.
|
flex
propflex
prop
flex
propflex
prop
hi @zombieJ any news on this ? |
any news? |
Deploy preview for ant-design ready! Built with commit 093d20f |
} | ||
.col(1); // kickstart it | ||
} | ||
|
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.
Fanally, I believe this can help to reduce at least 50Kb css size.
@afc163 @zombieJ this request #7309 (comment) is ok? |
|
https://deploy-preview-16635--ant-design.netlify.com/components/grid-cn/#components-grid-demo-flex
|
flex
propflex
prop
@zombieJ plz double check, and prepare merge |
/rebase |
标题 |
2c65160
to
ea77d3a
Compare
We can hint ``type="flex" |
Can move into |
also, and we 4.0 release doc can metion this too |
flex
propflex
prop
Wait for #16635 (comment) this list all checked. |
flex
propflex
prop
All of my changed list. Done. |
LGTM |
// Prevent columns from collapsing when empty | ||
min-height: 1px; | ||
} | ||
|
||
.make-grid-columns(); | ||
.make-grid(); |
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.
干不掉,之前干掉然后又捡回来了,这个就是栅格的基础,没有这个就没有栅格了……
display: block;
flex: 0 0 percentage((@index / @grid-columns));
max-width: percentage((@index / @grid-columns));
🤔 This is a ...
👻 What's the background?
close #7309
close #19728
💡 Solution
Add
flex
prop:📝 Changelog
flex
propflex
属性☑️ Self Check before Merge
View rendered components/grid/demo/flex-stretch.md
View rendered components/grid/demo/playground.md
View rendered components/grid/demo/responsive-more.md
View rendered components/grid/demo/responsive.md
View rendered components/grid/index.en-US.md
View rendered components/grid/index.zh-CN.md