eagle-ui是一款基于react开发的pc端UI组件库,目前主要用于apollo系统,它提供了常用的表单、布局、日历、弹窗等一系列符合apollo style的控件集合。
$ bower install eagle-ui
$ npm install eagle-ui --save
import {CalendarPanel,Input} from 'eagle-ui';
引入需要使用的组件之后在render函数中的调用方式如下:
<CalendarPanel defaultDate={this.state.defaultDate}
startDate="2015-11-11"
endDate="2017-12-1"
getValueCallback={::this.getvalue}>
<Input placeholder="请选择日期" style={{width:'150px'}} />
</CalendarPanel>
Github: https://github.com/future-team/phoenix-ui
Document: http://future-team.github.io/phoenix-ui/doc/index.html