mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-02 12:07:44 +08:00
46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using OneOf;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public partial class DescriptionsItem : AntDomComponentBase, IDescriptionsItem
|
|
{
|
|
[Parameter]
|
|
public string Title { get; set; } = "";
|
|
|
|
[Parameter]
|
|
public RenderFragment TitleTemplate { get; set; }
|
|
|
|
[Parameter]
|
|
public int Span { get; set; } = 1;
|
|
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
[Parameter]
|
|
public string LabelStyle { get; set; }
|
|
|
|
[Parameter]
|
|
public string ContentStyle { get; set; }
|
|
|
|
[CascadingParameter]
|
|
public Descriptions Descriptions { get; set; }
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
this.Descriptions?.Items.Remove(this);
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
this.Descriptions?.Items.Add(this);
|
|
base.OnInitialized();
|
|
}
|
|
}
|
|
}
|