Closed zhouzhongyuan closed 7 years ago
现在(2017-02-22)的代码Flex
和FlexLayout
很混乱,并且不易使用。
现在的Flex
和FlexLayout
主要用在页面布局(二次开发人员)上,而不是我们自己(app team)的Component中。
为什么我们自己不使用自己写的Flex
和FlexLayout
,我们自己写Component肯定也要用到布局的啊?因为我们发现自己写的不好用,用了weui的布局。
为什么自己写的Flex
和FlexLayout
不好用?
不能开箱即用,经常还有写各种className
或者style
;
没有确定一个前提:全部是用Flex布局。
经过与顾老师讨论。
flex:1;display:flex
FlexLayout
,仅保留Flex
Flex
,参考react-blocks的理念
Just the layout, no more, no less.
FlexTable - rowspan would be a nice to have feature
React Native布局详细指南(Flex在React和React Native中的区别)