[RFC] New Flex component #44070
zombieJ
announced in
RFCs - archive
Replies: 3 comments 5 replies
-
如果是这样的代码,gutter 配置就比较难受了 <Grid gutter={[32, 'small']}>
{isShow && <div />}
<div />
</Grid> |
Beta Was this translation helpful? Give feedback.
4 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
📋 RFC
Summary
Create new component Flex for the flex layout to simplify Row & Col usage.
Basic example
Motivation
Row & Col component is heavy in some case when we only need simplify flex view which we should provide a simple way like Space component.
It's easy to apply nest case:
And for Grid:
align
not supportstretch
since children must beCol
.A fallback case for hard writing:
Detailed
Flex behavior:
Drawbacks
New component.
Adoption strategy
Apply new component in minor version.
Beta Was this translation helpful? Give feedback.
All reactions