Commit f423c756 authored by afc163's avatar afc163

update Trend

parent 55b6eef9
...@@ -6,9 +6,6 @@ ...@@ -6,9 +6,6 @@
font-size: @font-size-base; font-size: @font-size-base;
line-height: 22px; line-height: 22px;
& + & {
margin-left: 16px;
}
.up, .up,
.down { .down {
margin-left: 4px; margin-left: 4px;
......
...@@ -228,16 +228,12 @@ export default class Analysis extends Component { ...@@ -228,16 +228,12 @@ export default class Analysis extends Component {
footer={<Field label="日均销售额" value={`¥${numeral(12423).format('0,0')}`} />} footer={<Field label="日均销售额" value={`¥${numeral(12423).format('0,0')}`} />}
contentHeight={46} contentHeight={46}
> >
<div style={{ whiteSpace: 'nowrap', overflow: 'hidden' }}> <Trend flag="up" style={{ marginRight: 16 }}>
<span> 周同比<span className={styles.trendText}>12%</span>
周同比 </Trend>
<Trend flag="up" className={styles.trend}>12%</Trend> <Trend flag="down">
</span> 日环比<span className={styles.trendText}>11%</span>
<span style={{ marginLeft: 16 }}> </Trend>
日环比
<Trend flag="down" className={styles.trend}>11%</Trend>
</span>
</div>
</ChartCard> </ChartCard>
</Col> </Col>
<Col {...topColResponsiveProps}> <Col {...topColResponsiveProps}>
...@@ -279,14 +275,12 @@ export default class Analysis extends Component { ...@@ -279,14 +275,12 @@ export default class Analysis extends Component {
total="78%" total="78%"
footer={ footer={
<div style={{ whiteSpace: 'nowrap', overflow: 'hidden' }}> <div style={{ whiteSpace: 'nowrap', overflow: 'hidden' }}>
<span> <Trend flag="up" style={{ marginRight: 16 }}>
周同比 周同比<span className={styles.trendText}>12%</span>
<Trend flag="up" className={styles.trend}>12%</Trend> </Trend>
</span> <Trend flag="down">
<span style={{ marginLeft: 16 }}> 日环比<span className={styles.trendText}>11%</span>
日环比 </Trend>
<Trend flag="down" className={styles.trend}>11%</Trend>
</span>
</div> </div>
} }
contentHeight={46} contentHeight={46}
......
...@@ -134,7 +134,7 @@ th.alignRight { ...@@ -134,7 +134,7 @@ th.alignRight {
text-align: right!important; text-align: right!important;
} }
.trend { .trendText {
margin-left: 8px; margin-left: 8px;
color: @heading-color; color: @heading-color;
} }
......
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