An open API service indexing awesome lists of open source software.

https://github.com/dxcweb/dxc-flex

react版本flex简写布局,支持native
https://github.com/dxcweb/dxc-flex

Last synced: about 1 year ago
JSON representation

react版本flex简写布局,支持native

Awesome Lists containing this project

README

          

# dxc-flex
dxc-flex是一套简洁、优雅的react flex布局组件。
完整的TypedDefinition,ide提示快速完成开发。
## install

```
yarn add dxc-flex
```
## Example
[位置](http://www.dxcweb.com/api/dxc-flex/examples/simple.html)
[布局方式](http://www.dxcweb.com/api/dxc-flex/examples/layout.html)
[Flex布局](http://www.dxcweb.com/api/dxc-flex/examples/flex.html)

## API



Name
Type
Default
Description




layout
String
horizontal
布局方式: horizontal(水平布局),vertical(垂直布局),flow(流布局)


horizontal
String
start
水平方向: start(开始)center(居中)end(结束),around与between只能在 layout="horizontal"时有效。


vertical
String
start
垂直方向: start(开始)center(居中)end(结束),around与between只能在 layout="vertical"时有效。


el
React.ReactNode | String
div
自定元素可以是react的组件也可以是html标签