chore: stlye patch of statistic (#35874)

* chore: stlye patch of statistic

* test: Udpate snapshot
This commit is contained in:
二货机器人 2022-06-02 11:36:03 +08:00 committed by GitHub
parent d239ae5bf5
commit 8b27d06eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

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

View File

@ -86,7 +86,7 @@ exports[`renders ./components/statistic/demo/basic.md extend context correctly 1
Active Users
</div>
<div
class="ant-skeleton"
class="ant-skeleton ant-statistic-skeleton"
>
<div
class="ant-skeleton-content"

View File

@ -86,7 +86,7 @@ exports[`renders ./components/statistic/demo/basic.md correctly 1`] = `
Active Users
</div>
<div
class="ant-skeleton"
class="ant-skeleton ant-statistic-skeleton"
>
<div
class="ant-skeleton-content"

View File

@ -12,6 +12,10 @@
font-size: @statistic-title-font-size;
}
&-skeleton {
padding-top: @padding-md;
}
&-content {
color: @heading-color;
font-size: @statistic-content-font-size;