2020-06-09 23:47:50 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@inherits StatisticComponentBase<TValue>
|
|
|
|
|
@typeparam TValue
|
|
|
|
|
|
2020-08-28 00:13:54 +08:00
|
|
|
|
@{
|
|
|
|
|
var SeparatedDecimal = SeparateDecimal();
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-09 23:47:50 +08:00
|
|
|
|
<div class="ant-statistic" style="@Style" @ref="Ref" id="@Id">
|
2020-09-16 13:58:16 +08:00
|
|
|
|
<div class="ant-statistic-title">
|
|
|
|
|
@if (TitleTemplate != null)@TitleTemplate else @Title
|
|
|
|
|
</div>
|
2020-06-09 23:47:50 +08:00
|
|
|
|
<div class="ant-statistic-content" style="@ValueStyle">
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (PrefixTemplate != null || Prefix != null)
|
2020-06-09 23:47:50 +08:00
|
|
|
|
{
|
|
|
|
|
<span class="ant-statistic-content-prefix">
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (PrefixTemplate != null)@PrefixTemplate else @Prefix
|
2020-06-09 23:47:50 +08:00
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
<span class="ant-statistic-content-value">
|
|
|
|
|
<span class="ant-statistic-content-value-int">
|
2020-08-28 00:13:54 +08:00
|
|
|
|
@SeparatedDecimal.integerPart
|
2020-06-09 23:47:50 +08:00
|
|
|
|
</span>
|
2020-08-28 00:13:54 +08:00
|
|
|
|
@if (!string.IsNullOrEmpty(SeparatedDecimal.fractionalPart))
|
2020-06-09 23:47:50 +08:00
|
|
|
|
{
|
|
|
|
|
<span class="ant-statistic-content-value-decimal">
|
2020-08-28 00:13:54 +08:00
|
|
|
|
@SeparatedDecimal.fractionalPart
|
2020-06-09 23:47:50 +08:00
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (SuffixTemplate != null || Suffix != null)
|
2020-06-09 23:47:50 +08:00
|
|
|
|
{
|
|
|
|
|
<span class="ant-statistic-content-suffix">
|
2020-09-16 13:58:16 +08:00
|
|
|
|
@if (SuffixTemplate != null)@SuffixTemplate else @Suffix
|
2020-06-09 23:47:50 +08:00
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
2020-09-05 00:51:50 +08:00
|
|
|
|
</div>
|