mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
chore: stlye patch of statistic (#35874)
* chore: stlye patch of statistic * test: Udpate snapshot
This commit is contained in:
parent
d239ae5bf5
commit
8b27d06eaa
@ -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}
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user