diff --git a/src/components/Charts/MiniProgress/index.d.ts b/src/components/Charts/MiniProgress/index.d.ts index 0ef158e893bdbdfc16ddfb9fea3587e139d29627..6111d88d585000899875e83ec11e4fe9072fe84e 100644 --- a/src/components/Charts/MiniProgress/index.d.ts +++ b/src/components/Charts/MiniProgress/index.d.ts @@ -1,6 +1,7 @@ import React from 'react'; export interface IMiniProgressProps { target: number; + targetLabel: string; color?: string; strokeWidth?: number; percent?: number; diff --git a/src/components/Charts/MiniProgress/index.js b/src/components/Charts/MiniProgress/index.js index 795c79b15951e2bdde85c0a6fa1427ba46c8df1c..16ca2b7b8e4bf50cc1711d9effbeab333015bbba 100644 --- a/src/components/Charts/MiniProgress/index.js +++ b/src/components/Charts/MiniProgress/index.js @@ -1,11 +1,21 @@ import React from 'react'; import { Tooltip } from 'antd'; +import { formatMessage } from 'umi/locale'; import styles from './index.less'; -const MiniProgress = ({ target, color = 'rgb(19, 194, 194)', strokeWidth, percent }) => ( +const MiniProgress = ({ + targetLabel, + target, + color = 'rgb(19, 194, 194)', + strokeWidth, + percent, +}) => (