mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
643c6de31e
* feat(module:table): header template and item template * add demos * fix merge conflict * rename some api Co-authored-by: anranruye <hehewewe@hotmail.com>
24 lines
748 B
C#
24 lines
748 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
namespace AntDesign
|
|
{
|
|
public class SimpleTableHeader : ActionColumn
|
|
{
|
|
protected override void OnInitialized()
|
|
{
|
|
if (ColSpan != 1) HeaderColSpan = ColSpan;
|
|
if (ChildContent != null) TitleTemplate = ChildContent;
|
|
base.OnInitialized();
|
|
}
|
|
|
|
protected override void OnParametersSet()
|
|
{
|
|
if (ColSpan != 1) HeaderColSpan = ColSpan;
|
|
if (ChildContent != null) TitleTemplate = ChildContent;
|
|
base.OnParametersSet();
|
|
}
|
|
}
|
|
}
|