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
|
|
|
|
2021-01-21 17:20:10 +08:00
|
|
|
<CascadingValue Value="this" IsFixed="@true">
|
|
|
|
<button class="@ClassMapper.Class" style="@(this.Danger ? this._btnWave + Style:Style)" id="@Id" type="@HtmlType" @ref="@Ref"
|
2020-07-07 22:45:13 +08:00
|
|
|
@onclick="HandleOnClick" disabled="@Disabled"
|
2021-01-11 22:59:21 +08:00
|
|
|
@onclick:stopPropagation="@OnClickStopPropagation"
|
2020-07-07 22:45:13 +08:00
|
|
|
@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>
|