|
@@ -1,11 +1,11 @@
|
|
|
import React from 'react';
|
|
import React from 'react';
|
|
|
-import { Popover } from 'antd';
|
|
|
|
|
|
|
+import { Tooltip } from 'antd';
|
|
|
|
|
|
|
|
import styles from './index.less';
|
|
import styles from './index.less';
|
|
|
|
|
|
|
|
const MiniProgress = ({ target, color, strokeWidth, percent }) => (
|
|
const MiniProgress = ({ target, color, strokeWidth, percent }) => (
|
|
|
<div className={styles.miniProgress}>
|
|
<div className={styles.miniProgress}>
|
|
|
- <Popover title={null} content={`目标值: ${target}%`}>
|
|
|
|
|
|
|
+ <Tooltip title={`目标值: ${target}%`}>
|
|
|
<div
|
|
<div
|
|
|
className={styles.target}
|
|
className={styles.target}
|
|
|
style={{ left: (target ? `${target}%` : null) }}
|
|
style={{ left: (target ? `${target}%` : null) }}
|
|
@@ -13,7 +13,7 @@ const MiniProgress = ({ target, color, strokeWidth, percent }) => (
|
|
|
<span style={{ backgroundColor: (color || null) }} />
|
|
<span style={{ backgroundColor: (color || null) }} />
|
|
|
<span style={{ backgroundColor: (color || null) }} />
|
|
<span style={{ backgroundColor: (color || null) }} />
|
|
|
</div>
|
|
</div>
|
|
|
- </Popover>
|
|
|
|
|
|
|
+ </Tooltip>
|
|
|
<div className={styles.progressWrap}>
|
|
<div className={styles.progressWrap}>
|
|
|
<div
|
|
<div
|
|
|
className={styles.progress}
|
|
className={styles.progress}
|