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">
|
|
|
|
|
<div class="ant-statistic-title">
|
2020-08-28 00:13:54 +08:00
|
|
|
|
@if (Title.IsT0)@Title.AsT0 else @Title.AsT1
|
2020-06-09 23:47:50 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="ant-statistic-content" style="@ValueStyle">
|
|
|
|
|
@if (@Prefix.IsT0 && !string.IsNullOrEmpty(Prefix.AsT0) || @Prefix.IsT1 && Prefix.AsT1 != null)
|
|
|
|
|
{
|
|
|
|
|
<span class="ant-statistic-content-prefix">
|
|
|
|
|
@if (@Prefix.IsT0)@Prefix.AsT0 else @Prefix.AsT1
|
|
|
|
|
</span>
|
|
|
|
|
}
|
2020-08-28 00:13:54 +08:00
|
|
|
|
|
2020-06-09 23:47:50 +08:00
|
|
|
|
<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>
|
|
|
|
|
@if (@Suffix.IsT0 && !string.IsNullOrEmpty(@Suffix.AsT0) || @Suffix.IsT1 && @Suffix.AsT1 != null)
|
|
|
|
|
{
|
|
|
|
|
<span class="ant-statistic-content-suffix">
|
|
|
|
|
@if (@Suffix.IsT0)@Suffix.AsT0 else @Suffix.AsT1
|
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|