mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 17:01:18 +08:00
5f4af8fce8
* feat: add animating for button component when mouseup event fired * refactor: animating ? true : false replaced * fix: wrong color of animating in danger mode for button component * fix: reload timer when DelayElapsed。 * fix: replace timer with Task.run * fix: bugs in button demo * refactor: clean code Co-authored-by: ElderJames <shunjiey@hotmail.com>
21 lines
641 B
C#
21 lines
641 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"
|
|
@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>
|