From 137fbf76a1630ab8b7c8fe472479dc96fd32975f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=A4=A9=E5=B0=A7?= Date: Wed, 29 Nov 2017 15:20:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E7=BB=84=E4=BB=B6=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/units/statistic/README.md | 2 ++ src/components/units/statistic/index.js | 43 +++++++++++++++++++++++ src/components/units/statistic/index.scss | 5 +++ 3 files changed, 50 insertions(+) create mode 100755 src/components/units/statistic/README.md create mode 100755 src/components/units/statistic/index.js create mode 100755 src/components/units/statistic/index.scss 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