2020-05-29 00:33:49 +08:00
|
|
|
@namespace AntDesign
|
2020-06-27 01:20:52 +08:00
|
|
|
@typeparam TValue
|
|
|
|
@inherits AntInputComponentBase<TValue>
|
2020-04-23 17:13:56 +08:00
|
|
|
|
|
|
|
<div class="@ClassMapper.Class" style="@Style" id="@Id">
|
2020-03-26 10:45:35 +08:00
|
|
|
<div class="ant-input-number-handler-wrap">
|
2021-05-08 16:35:08 +08:00
|
|
|
<span unselectable="unselectable" role="button" aria-label="Increase Value" class="@GetIconClass("up")" @onmousedown="IncreaseDown" @onmouseup="IncreaseUp" @onmouseout="IncreaseUp">
|
2020-06-27 01:20:52 +08:00
|
|
|
<Icon Class="ant-input-number-handler-up-inner" Type="up" />
|
|
|
|
</span>
|
2021-05-08 16:35:08 +08:00
|
|
|
<span unselectable="unselectable" role="button" aria-label="Decrease Value" class="@GetIconClass("down")" @onmousedown="DecreaseDown" @onmouseup="DecreaseUp" @onmouseout="DecreaseUp">
|
2020-06-27 01:20:52 +08:00
|
|
|
<Icon Class="ant-input-number-handler-down-inner" Type="down" />
|
|
|
|
</span>
|
2020-03-26 10:45:35 +08:00
|
|
|
</div>
|
|
|
|
<div class="ant-input-number-input-wrap">
|
2021-01-21 17:20:10 +08:00
|
|
|
<input @ref="Ref" role="spinbutton" aria-valuemin="@Min" aria-valuemax="@Max" autocomplete="off" max="@Max" min="@Min" step="@Step"
|
2021-03-11 13:23:56 +08:00
|
|
|
aria-valuenow="@CurrentValue" class="ant-input-number-input" @bind="@CurrentValueAsString" @oninput="OnInput" @onkeydown="OnKeyDown" @onfocus="@OnFocus" @onblur="@OnBlurAsync" disabled="@Disabled" />
|
2020-03-26 10:45:35 +08:00
|
|
|
</div>
|
2020-04-23 17:13:56 +08:00
|
|
|
</div>
|