mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
9d76e3f4d1
* feat: input and inputNumber Supports generics * fix: remove debug code * fix: inputNumber performance issues * fix: number type limit and style * fix: inputNumber code format optimization * fix: inputnumber bug * fix: inputnumber bug * fix: drawer demo input generic * fix: inputnumber Improve input experience * fix: fix bugs * fix: add some improvements Co-authored-by: ElderJames <shunjiey@hotmail.com>
19 lines
1.0 KiB
C#
19 lines
1.0 KiB
C#
@namespace AntDesign
|
|
@typeparam TValue
|
|
@inherits AntInputComponentBase<TValue>
|
|
|
|
<div class="@ClassMapper.Class" style="@Style" id="@Id">
|
|
<div class="ant-input-number-handler-wrap">
|
|
<span unselectable="unselectable" role="button" aria-label="Increase Value" class="@GetIconClass("up")" @onmousedown="Increase">
|
|
<Icon Class="ant-input-number-handler-up-inner" Type="up" />
|
|
</span>
|
|
<span unselectable="unselectable" role="button" aria-label="Decrease Value" class="@GetIconClass("down")" @onmousedown="Decrease">
|
|
<Icon Class="ant-input-number-handler-down-inner" Type="down" />
|
|
</span>
|
|
</div>
|
|
<div class="ant-input-number-input-wrap">
|
|
<input @ref="_inputRef" role="spinbutton" aria-valuemin="@Min" aria-valuemax="@Max" autocomplete="off" max="@Max" min="@Min" step="@Step"
|
|
aria-valuenow="@CurrentValue" class="ant-input-number-input" @bind="@CurrentValueAsString" @oninput="OnInput" @onfocus="@OnFocus" @onblur="@OnBlur" />
|
|
</div>
|
|
</div>
|