Commit 1a1aa957 authored by afc163's avatar afc163

update dashboard

parent 3e042cbc
...@@ -192,7 +192,7 @@ class Pie extends Component { ...@@ -192,7 +192,7 @@ class Pie extends Component {
return ( return (
<div className={styles.pie} style={{ height }}> <div className={styles.pie} style={{ height }}>
<div> <div>
{ title && <h4 className={styles.title}>{title}</h4>} {title && <h4 className={styles.title}>{title}</h4>}
<div className={styles.content}> <div className={styles.content}>
<div ref={this.handleRef} /> <div ref={this.handleRef} />
{ {
......
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
position: absolute; position: absolute;
right: 0; right: 0;
} }
.title {
margin-bottom: 16px;
}
.total { .total {
opacity: 0; opacity: 0;
position: absolute; position: absolute;
...@@ -58,6 +61,7 @@ ...@@ -58,6 +61,7 @@
line-height: 22px; line-height: 22px;
height: 22px; height: 22px;
margin-bottom: 8px; margin-bottom: 8px;
font-weight: normal;
} }
& > p { & > p {
color: @heading-color; color: @heading-color;
......
...@@ -386,7 +386,7 @@ export default class Analysis extends Component { ...@@ -386,7 +386,7 @@ export default class Analysis extends Component {
)} )}
style={{ marginTop: 24 }} style={{ marginTop: 24 }}
> >
<div style={{ marginTop: 32, marginBottom: 54 }}> <div style={{ marginTop: 32, marginBottom: 108 }}>
<Pie <Pie
hasLegend hasLegend
title="销售额" title="销售额"
...@@ -394,7 +394,7 @@ export default class Analysis extends Component { ...@@ -394,7 +394,7 @@ export default class Analysis extends Component {
total={yuan(salesPieData.reduce((pre, now) => now.y + pre, 0))} total={yuan(salesPieData.reduce((pre, now) => now.y + pre, 0))}
data={salesPieData} data={salesPieData}
valueFormat={val => yuan(val)} valueFormat={val => yuan(val)}
height={314} height={260}
/> />
</div> </div>
</Card> </Card>
......
...@@ -104,9 +104,6 @@ ...@@ -104,9 +104,6 @@
.ant-tabs-bar { .ant-tabs-bar {
border-bottom: none; border-bottom: none;
} }
.ant-tabs-ink-bar {
top: 1px;
}
.ant-tabs-nav-container-scrolling { .ant-tabs-nav-container-scrolling {
padding-left: 40px; padding-left: 40px;
padding-right: 40px; padding-right: 40px;
...@@ -141,11 +138,9 @@ ...@@ -141,11 +138,9 @@
margin-top: 16px; margin-top: 16px;
} }
.salesCard { .salesCard .salesBar {
.salesBar {
padding: 16px; padding: 16px;
} }
}
} }
@media screen and (max-width: @screen-sm) { @media screen and (max-width: @screen-sm) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment