|
|
@ -54,7 +54,7 @@ const Statistic: React.FC<StatisticProps & ConfigConsumerProps> = props => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={cls} style={style} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>
|
|
|
|
<div className={cls} style={style} onMouseEnter={onMouseEnter} onMouseLeave={onMouseLeave}>
|
|
|
|
{title && <div className={`${prefixCls}-title`}>{title}</div>}
|
|
|
|
{title && <div className={`${prefixCls}-title`}>{title}</div>}
|
|
|
|
<Skeleton paragraph={false} loading={loading}>
|
|
|
|
<Skeleton paragraph={false} loading={loading} className={`${prefixCls}-skeleton`}>
|
|
|
|
<div style={valueStyle} className={`${prefixCls}-content`}>
|
|
|
|
<div style={valueStyle} className={`${prefixCls}-content`}>
|
|
|
|
{prefix && <span className={`${prefixCls}-content-prefix`}>{prefix}</span>}
|
|
|
|
{prefix && <span className={`${prefixCls}-content-prefix`}>{prefix}</span>}
|
|
|
|
{valueRender ? valueRender(valueNode) : valueNode}
|
|
|
|
{valueRender ? valueRender(valueNode) : valueNode}
|
|
|
|