2020-05-29 00:33:49 +08:00
|
|
|
@namespace AntDesign
|
2020-04-23 17:13:56 +08:00
|
|
|
@inherits AntDomComponentBase
|
2019-12-16 15:33:29 +08:00
|
|
|
|
|
|
|
<CascadingValue Value="this">
|
2020-07-07 22:45:13 +08:00
|
|
|
<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")">
|
2020-04-23 17:13:56 +08:00
|
|
|
@if (Loading)
|
2019-12-16 15:33:29 +08:00
|
|
|
{
|
2020-06-07 19:41:00 +08:00
|
|
|
<Icon Type="loading"></Icon>
|
2019-12-16 15:33:29 +08:00
|
|
|
}
|
2020-04-23 17:13:56 +08:00
|
|
|
@if (!string.IsNullOrEmpty(Icon))
|
2019-12-16 15:33:29 +08:00
|
|
|
{
|
2020-06-07 19:41:00 +08:00
|
|
|
<Icon Type="@Icon" Style="@IconStyle"></Icon>
|
2019-12-16 15:33:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@ChildContent
|
|
|
|
</button>
|
|
|
|
</CascadingValue>
|