mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
a377fe747c
* feat: add-Statistic * refactor: generic type Co-authored-by: ElderJames <shunjiey@hotmail.com>
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Microsoft.AspNetCore.Components;
|
|
using OneOf;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public abstract class StatisticComponentBase<T>:AntDomComponentBase
|
|
{
|
|
/// <summary>
|
|
/// 设置数值的前缀
|
|
/// </summary>
|
|
[Parameter] public OneOf<string, RenderFragment> Prefix { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 设置数值的后缀
|
|
/// </summary>
|
|
[Parameter] public OneOf<string, RenderFragment> Suffix { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 数值的标题
|
|
/// </summary>
|
|
[Parameter] public OneOf<string, RenderFragment> Title { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 数值内容
|
|
/// </summary>
|
|
[Parameter] public T Value { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设置数值的样式
|
|
/// </summary>
|
|
[Parameter] public string ValueStyle { get; set; }
|
|
|
|
[Parameter] public RenderFragment ChildContent { get; set; }
|
|
}
|
|
}
|