Browse Source

Fix pie rerender

pull/457/head
afc163 9 years ago
parent
commit
84ebabf53d
  1. 21
      src/routes/Dashboard/Analysis.js

21
src/routes/Dashboard/Analysis.js

@ -439,16 +439,17 @@ export default class Analysis extends Component {
style={{ marginTop: 24 }} style={{ marginTop: 24 }}
> >
<h4 style={{ marginTop: 8, marginBottom: 32 }}>销售额</h4> <h4 style={{ marginTop: 8, marginBottom: 32 }}>销售额</h4>
<Pie <div style={{ marginBottom: 57 }}>
hasLegend <Pie
subTitle="销售额" hasLegend
total={yuan(salesPieData.reduce((pre, now) => now.y + pre, 0))} subTitle="销售额"
data={salesPieData} total={yuan(salesPieData.reduce((pre, now) => now.y + pre, 0))}
valueFormat={val => yuan(val)} data={salesPieData}
height={240} valueFormat={val => yuan(val)}
lineWidth={4} height={240}
style={{ marginBottom: 57 }} lineWidth={4}
/> />
</div>
</Card> </Card>
</Col> </Col>
</Row> </Row>

Loading…
Cancel
Save