diff --git a/src/components/units/statistic/README.md b/src/components/units/statistic/README.md new file mode 100755 index 0000000..de5dbf9 --- /dev/null +++ b/src/components/units/statistic/README.md @@ -0,0 +1,2 @@ +# statistic构件单元组件 +--- \ No newline at end of file diff --git a/src/components/units/statistic/index.js b/src/components/units/statistic/index.js new file mode 100755 index 0000000..9877d1e --- /dev/null +++ b/src/components/units/statistic/index.js @@ -0,0 +1,43 @@ +import React, { PropTypes } from 'react'; +import autoBind from 'autobind-decorator'; +import pureRender from 'pure-render-decorator'; +import ImmutablePropTypes from 'react-immutable-proptypes'; +import immutable from 'immutable'; + +import './index.scss'; + +import unitAction from '../../../action/unit'; +import UnitPanel from '../panel/index'; + +@pureRender +class UnitStatistic extends React.Component { + static propTypes = { + data: ImmutablePropTypes.map, + id: PropTypes.number + }; + constructor(props){ + super(props); + } + render() { + const { data, id } = this.props; + return ( + + + + ); + } +} + +export default UnitStatistic; diff --git a/src/components/units/statistic/index.scss b/src/components/units/statistic/index.scss new file mode 100755 index 0000000..117c50a --- /dev/null +++ b/src/components/units/statistic/index.scss @@ -0,0 +1,5 @@ +#app .unit-statistic{ + .show-detail{ + height: 80px; + } +} \ No newline at end of file