Commit a30e058e authored by afc163's avatar afc163

update detail

parent f8028599
import React, { Component } from 'react'; import React, { Component } from 'react';
import G2 from 'g2'; import G2 from 'g2';
import { Divider } from 'antd';
import equal from '../equal'; import equal from '../equal';
import styles from './index.less'; import styles from './index.less';
...@@ -223,7 +224,7 @@ class Pie extends Component { ...@@ -223,7 +224,7 @@ class Pie extends Component {
<li key={item.x} onClick={() => this.handleLegendClick(item, i)}> <li key={item.x} onClick={() => this.handleLegendClick(item, i)}>
<span className={styles.dot} style={{ backgroundColor: !item.checked ? '#aaa' : item.color }} /> <span className={styles.dot} style={{ backgroundColor: !item.checked ? '#aaa' : item.color }} />
<span className={styles.legendTitle}>{item.x}</span> <span className={styles.legendTitle}>{item.x}</span>
<span className={styles.line} /> <Divider type="vertical" />
<span className={styles.percent}>{`${(item['..percent'] * 100).toFixed(2)}%`}</span> <span className={styles.percent}>{`${(item['..percent'] * 100).toFixed(2)}%`}</span>
<span <span
className={styles.value} className={styles.value}
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
} }
.legendTitle { .legendTitle {
color: @text-color; color: @text-color;
margin-right: 8px;
} }
.percent { .percent {
color: @text-color-secondary; color: @text-color-secondary;
......
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