mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 17:01:18 +08:00
22 lines
704 B
C#
22 lines
704 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<CascadingValue Value="this">
|
|
<button class="@ClassMapper.Class" style="@(this.Danger ? this._btnWave + Style:Style)" id="@Id" type="@HtmlType"
|
|
@onclick="HandleOnClick" disabled="@Disabled"
|
|
@onclick:stopPropagation="@OnClickStopPropagation"
|
|
@onmouseup="OnMouseUp"
|
|
ant-click-animating-without-extra-node="@(this._animating ? "true":"false")">
|
|
@if (Loading)
|
|
{
|
|
<Icon Type="loading"></Icon>
|
|
}
|
|
@if (!string.IsNullOrEmpty(Icon))
|
|
{
|
|
<Icon Type="@Icon" Style="@IconStyle"></Icon>
|
|
}
|
|
|
|
@ChildContent
|
|
</button>
|
|
</CascadingValue>
|