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

React布局 #18

Closed
zhouzhongyuan opened this issue Feb 22, 2017 · 2 comments
Closed

React布局 #18

zhouzhongyuan opened this issue Feb 22, 2017 · 2 comments
Labels

Comments

@zhouzhongyuan
Copy link
Owner

zhouzhongyuan commented Feb 22, 2017

@zhouzhongyuan
Copy link
Owner Author

zhouzhongyuan commented Feb 22, 2017

现在(2017-02-22)的代码FlexFlexLayout很混乱,并且不易使用。

  • 现在的FlexFlexLayout主要用在页面布局(二次开发人员)上,而不是我们自己(app team)的Component中。

  • 为什么我们自己不使用自己写的FlexFlexLayout,我们自己写Component肯定也要用到布局的啊?因为我们发现自己写的不好用,用了weui的布局。

  • 为什么自己写的FlexFlexLayout不好用?
    不能开箱即用,经常还有写各种className或者style
    没有确定一个前提:全部是用Flex布局。

@zhouzhongyuan
Copy link
Owner Author

经过与顾老师讨论。

  1. 全部使用Flex
  2. 默认flex:1;display:flex
  3. 删除FlexLayout,仅保留Flex
  4. 修改Flex,参考react-blocks的理念

Just the layout, no more, no less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant