ant-design-blazor/components/button/Button.razor

21 lines
641 B
C#
Raw Normal View History

@namespace AntDesign
@inherits AntDomComponentBase
2019-12-16 15:33:29 +08:00
<CascadingValue Value="this">
<button class="@ClassMapper.Class" style="@(this.Danger ? this._btnWave + Style:Style)" id="@Id" type="@HtmlType"
@onclick="HandleOnClick" disabled="@Disabled"
@onmouseup="OnMouseUp"
ant-click-animating-without-extra-node="@(this._animating ? "true":"false")">
@if (Loading)
2019-12-16 15:33:29 +08:00
{
<Icon Type="loading"></Icon>
2019-12-16 15:33:29 +08:00
}
@if (!string.IsNullOrEmpty(Icon))
2019-12-16 15:33:29 +08:00
{
<Icon Type="@Icon" Style="@IconStyle"></Icon>
2019-12-16 15:33:29 +08:00
}
@ChildContent
</button>
</CascadingValue>